Add comments to test

This commit is contained in:
Simon Hanna 2016-05-17 21:35:25 +02:00
parent 6bbf783a2e
commit f3e1194956

View File

@ -115,10 +115,14 @@ class TestCategoryActionList(TestCase):
"""
Test the __iter__ and __next__ methods
"""
# GIVEN: The list including two actions
self.list.add(self.action1)
self.list.add(self.action2)
# WHEN: Iterating over the list
l = [a for a in self.list]
# THEN: Make sure they are returned in correct order
self.assertEquals(len(self.list), 2)
self.assertIs(l[0], self.action1)
self.assertIs(l[1], self.action2)