Skip to content

Commit

Permalink
Updated this test to fit with the PatternDS MetaFile changes
Browse files Browse the repository at this point in the history
  • Loading branch information
captainceramic committed Nov 3, 2014
1 parent 1c70640 commit d7e10ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cwsl/tests/test_patterndataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

import cwsl.core.pattern_dataset
from cwsl.core.constraint import Constraint
from cwsl.core.metafile import MetaFile
from cwsl.core.pattern_dataset import PatternDataSet, ConstraintNotFoundError


Expand Down Expand Up @@ -76,7 +77,7 @@ def test_getfiles(self):

found_files = test_patternds.get_files({'colour': 'green',
'animal': 'echidna'})
expected_files = ['/fake/green_echidna.txt']
expected_files = [MetaFile('green_echidna.txt', '/fake', {})]

self.assertEqual(found_files, expected_files)
mock_glob.assert_called_once_with()
Expand Down

0 comments on commit d7e10ba

Please sign in to comment.