doc strings an typos

This commit is contained in:
Phill Ridout 2015-01-20 07:14:58 +00:00
parent f1f0ab9c3d
commit 88f69ea7c4

View File

@ -50,7 +50,7 @@ class TestImageMediaItem(TestCase):
def validate_and_load_test(self): def validate_and_load_test(self):
""" """
Test that the validate_and_load_test() method Test that the validate_and_load_test() method when called without a group
""" """
# GIVEN: A list of files # GIVEN: A list of files
file_list = ['/path1/image1.jpg', '/path2/image2.jpg'] file_list = ['/path1/image1.jpg', '/path2/image2.jpg']
@ -62,13 +62,13 @@ class TestImageMediaItem(TestCase):
self.media_item.validate_and_load(file_list) self.media_item.validate_and_load(file_list)
# THEN: load_list should have been called with the file list and None, # THEN: load_list should have been called with the file list and None,
# the dectory should have been saved to the settings # the directory should have been saved to the settings
mocked_load_list.assert_called_once_with(file_list, None) mocked_load_list.assert_called_once_with(file_list, None)
mocked_settings().setValue.assert_called_once_with(ANY, '/path1') mocked_settings().setValue.assert_called_once_with(ANY, '/path1')
def validate_and_load_group_test(self): def validate_and_load_group_test(self):
""" """
Test that the validate_and_load_test() method Test that the validate_and_load_test() method when called with a group
""" """
# GIVEN: A list of files # GIVEN: A list of files
file_list = ['/path1/image1.jpg', '/path2/image2.jpg'] file_list = ['/path1/image1.jpg', '/path2/image2.jpg']
@ -80,7 +80,7 @@ class TestImageMediaItem(TestCase):
self.media_item.validate_and_load(file_list, 'group') self.media_item.validate_and_load(file_list, 'group')
# THEN: load_list should have been called with the file list and the group name, # THEN: load_list should have been called with the file list and the group name,
# the dectory should have been saved to the settings # the directory should have been saved to the settings
mocked_load_list.assert_called_once_with(file_list, 'group') mocked_load_list.assert_called_once_with(file_list, 'group')
mocked_settings().setValue.assert_called_once_with(ANY, '/path1') mocked_settings().setValue.assert_called_once_with(ANY, '/path1')