diff options
Diffstat (limited to 'test/libtest.py')
| -rw-r--r-- | test/libtest.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/libtest.py b/test/libtest.py index b35b4f3..eea8117 100644 --- a/test/libtest.py +++ b/test/libtest.py | |||
| @@ -14,14 +14,14 @@ class Test_Remove_lib(test.MATTest): | |||
| 14 | def test_remove(self): | 14 | def test_remove(self): |
| 15 | '''make sure that the lib remove all compromizing meta''' | 15 | '''make sure that the lib remove all compromizing meta''' |
| 16 | for clean, dirty in self.file_list: | 16 | for clean, dirty in self.file_list: |
| 17 | current_file = mat.create_class_file(dirty, False) | 17 | current_file = mat.create_class_file(dirty, False, True) |
| 18 | current_file.remove_all() | 18 | current_file.remove_all() |
| 19 | self.assertTrue(current_file.is_clean()) | 19 | self.assertTrue(current_file.is_clean()) |
| 20 | 20 | ||
| 21 | def test_remove_empty(self): | 21 | def test_remove_empty(self): |
| 22 | '''Test removal with clean files''' | 22 | '''Test removal with clean files''' |
| 23 | for clean, dirty in self.file_list: | 23 | for clean, dirty in self.file_list: |
| 24 | current_file = mat.create_class_file(clean, False) | 24 | current_file = mat.create_class_file(clean, False, True) |
| 25 | current_file.remove_all() | 25 | current_file.remove_all() |
| 26 | self.assertTrue(current_file.is_clean()) | 26 | self.assertTrue(current_file.is_clean()) |
| 27 | 27 | ||
| @@ -30,14 +30,14 @@ class Test_List_lib(test.MATTest): | |||
| 30 | def test_list(self): | 30 | def test_list(self): |
| 31 | '''check if get_meta returns all the expected meta''' | 31 | '''check if get_meta returns all the expected meta''' |
| 32 | for clean, dirty in self.file_list: | 32 | for clean, dirty in self.file_list: |
| 33 | current_file = mat.create_class_file(dirty, False) | 33 | current_file = mat.create_class_file(dirty, False, True) |
| 34 | #FIXME assertisNotNone() : python 2.7 | 34 | #FIXME assertisNotNone() : python 2.7 |
| 35 | self.assertTrue(current_file.get_meta()) | 35 | self.assertTrue(current_file.get_meta()) |
| 36 | 36 | ||
| 37 | def testlist_list_empty(self): | 37 | def testlist_list_empty(self): |
| 38 | '''check that a listing of a clean file return an empty dict''' | 38 | '''check that a listing of a clean file return an empty dict''' |
| 39 | for clean, dirty in self.file_list: | 39 | for clean, dirty in self.file_list: |
| 40 | current_file = mat.create_class_file(clean, False) | 40 | current_file = mat.create_class_file(clean, False, True) |
| 41 | self.assertEqual(current_file.get_meta(), dict()) | 41 | self.assertEqual(current_file.get_meta(), dict()) |
| 42 | 42 | ||
| 43 | 43 | ||
| @@ -45,13 +45,13 @@ class Test_isClean_lib(test.MATTest): | |||
| 45 | def test_dirty(self): | 45 | def test_dirty(self): |
| 46 | '''test is_clean on clean files''' | 46 | '''test is_clean on clean files''' |
| 47 | for clean, dirty in self.file_list: | 47 | for clean, dirty in self.file_list: |
| 48 | current_file = mat.create_class_file(dirty, False) | 48 | current_file = mat.create_class_file(dirty, False, True) |
| 49 | self.assertFalse(current_file.is_clean()) | 49 | self.assertFalse(current_file.is_clean()) |
| 50 | 50 | ||
| 51 | def test_clean(self): | 51 | def test_clean(self): |
| 52 | '''test is_clean on dirty files''' | 52 | '''test is_clean on dirty files''' |
| 53 | for clean, dirty in self.file_list: | 53 | for clean, dirty in self.file_list: |
| 54 | current_file = mat.create_class_file(clean, False) | 54 | current_file = mat.create_class_file(clean, False, True) |
| 55 | self.assertTrue(current_file.is_clean()) | 55 | self.assertTrue(current_file.is_clean()) |
| 56 | 56 | ||
| 57 | 57 | ||
