From 550dfe12fabb5e5f93ba8cb4cfc8568a46e248d5 Mon Sep 17 00:00:00 2001 From: Andreas Preikschat Date: Fri, 1 Mar 2013 17:18:50 +0100 Subject: [PATCH] fixed/extended test --- tests/functional/openlp_core_utils/test_applocation.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/functional/openlp_core_utils/test_applocation.py b/tests/functional/openlp_core_utils/test_applocation.py index d823b077c..23e7c008c 100644 --- a/tests/functional/openlp_core_utils/test_applocation.py +++ b/tests/functional/openlp_core_utils/test_applocation.py @@ -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.'