From d7e10ba0c1afd51da2f3fd6c8ac7370c9a12dad9 Mon Sep 17 00:00:00 2001 From: Tim Bedin Date: Mon, 3 Nov 2014 16:46:43 +1100 Subject: [PATCH] Updated this test to fit with the PatternDS MetaFile changes --- cwsl/tests/test_patterndataset.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cwsl/tests/test_patterndataset.py b/cwsl/tests/test_patterndataset.py index 27d7ef0..6b282fa 100644 --- a/cwsl/tests/test_patterndataset.py +++ b/cwsl/tests/test_patterndataset.py @@ -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 @@ -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()