Skip to content

Commit

Permalink
Add some comments to explain what the test is testing for
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmiller committed May 2, 2017
1 parent e418d65 commit 09d9f15
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion elcid/test/test_application.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ def test_get_menu_items(self):
def test_make_sure_we_dont_change_a_global_object(self):
# make sure we don't change the list as it appears on
# the application object
menu_items_1 = copy(Application.get_menu_items())
menu_items_1 = Application.get_menu_items()
# We have to copy it because when it's a reference, both 1 and 2
# will be updated in place by the second get_menu_items() call
menu_items_1 = copy(menu_items_1)
menu_items_2 = Application.get_menu_items()
self.assertEqual(menu_items_1, menu_items_2)

0 comments on commit 09d9f15

Please sign in to comment.