Change helper method to private

This commit is contained in:
Arjan Schrijver 2013-05-19 13:31:02 +02:00
parent 6572ab31e8
commit 255ed90d97

View File

@ -126,7 +126,7 @@ class TestImageMediaItem(TestCase):
self.media_item.reset_action.setVisible.assert_called_with(False) self.media_item.reset_action.setVisible.assert_called_with(False)
self.media_item.live_controller.display.reset_image.assert_called_with() self.media_item.live_controller.display.reset_image.assert_called_with()
def recursively_delete_group_side_effect(*args, **kwargs): def _recursively_delete_group_side_effect(*args, **kwargs):
""" """
Side effect method that creates custom retun values for the recursively_delete_group method Side effect method that creates custom retun values for the recursively_delete_group method
""" """
@ -160,7 +160,7 @@ class TestImageMediaItem(TestCase):
ImageFilenames.group_id = 1 ImageFilenames.group_id = 1
ImageGroups.parent_id = 1 ImageGroups.parent_id = 1
self.media_item.manager = MagicMock() self.media_item.manager = MagicMock()
self.media_item.manager.get_all_objects.side_effect = self.recursively_delete_group_side_effect self.media_item.manager.get_all_objects.side_effect = self._recursively_delete_group_side_effect
self.media_item.servicePath = "" self.media_item.servicePath = ""
test_group = ImageGroups() test_group = ImageGroups()
test_group.id = 1 test_group.id = 1