From f3e1194956d4084498359693680a5dd8ac9c0bfb Mon Sep 17 00:00:00 2001 From: Simon Hanna Date: Tue, 17 May 2016 21:35:25 +0200 Subject: [PATCH] Add comments to test --- tests/functional/openlp_core_common/test_actions.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/functional/openlp_core_common/test_actions.py b/tests/functional/openlp_core_common/test_actions.py index a2f57e969..92f030df2 100644 --- a/tests/functional/openlp_core_common/test_actions.py +++ b/tests/functional/openlp_core_common/test_actions.py @@ -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)