fixed/extended test

This commit is contained in:
Andreas Preikschat 2013-03-01 17:18:50 +01:00
parent 7feab25c3f
commit 550dfe12fa

View File

@ -83,7 +83,10 @@ class TestAppLocation(TestCase):
mocked_listdir.return_value = copy.deepcopy(FILE_LIST)
# When: Get the list of files.
result = AppLocation.get_files(u'section', u'.mp3')
result = AppLocation.get_files(u'sectidon', u'.mp3')
# Then: Check if the section parameter was used correctly.
mocked_listdir.assert_called_with(u'test/dir/section')
# Then: check if the file lists are identical.
assert result == [u'file5.mp3', u'file6.mp3'], u'The file lists should be identical.'