forked from openlp/openlp
fixed/extended test
This commit is contained in:
parent
7feab25c3f
commit
550dfe12fa
@ -83,7 +83,10 @@ class TestAppLocation(TestCase):
|
|||||||
mocked_listdir.return_value = copy.deepcopy(FILE_LIST)
|
mocked_listdir.return_value = copy.deepcopy(FILE_LIST)
|
||||||
|
|
||||||
# When: Get the list of files.
|
# 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.
|
# Then: check if the file lists are identical.
|
||||||
assert result == [u'file5.mp3', u'file6.mp3'], u'The file lists should be identical.'
|
assert result == [u'file5.mp3', u'file6.mp3'], u'The file lists should be identical.'
|
||||||
|
Loading…
Reference in New Issue
Block a user