diff options
| author | jvoisin | 2011-06-20 01:38:07 +0200 |
|---|---|---|
| committer | jvoisin | 2011-06-20 01:38:07 +0200 |
| commit | 2db5e9e7751d7086e68d8ea05f6a7311bbedea3b (patch) | |
| tree | e47c520672fbff0731af26f4cd594e07dcf36fd2 | |
| parent | 9c6953067fd1132f778faa7e926e9049edf9f4c3 (diff) | |
Tests are now effectives (hopefully)
| -rw-r--r--[-rwxr-xr-x] | test/clitest.py | 0 | ||||
| -rw-r--r--[-rwxr-xr-x] | test/libtest.py | 8 | ||||
| -rw-r--r--[-rwxr-xr-x] | test/test.py | 0 |
3 files changed, 4 insertions, 4 deletions
diff --git a/test/clitest.py b/test/clitest.py index da0563f..da0563f 100755..100644 --- a/test/clitest.py +++ b/test/clitest.py | |||
diff --git a/test/libtest.py b/test/libtest.py index 2bd1fa7..6561269 100755..100644 --- a/test/libtest.py +++ b/test/libtest.py | |||
| @@ -31,14 +31,14 @@ class Test_List_lib(test.MATTest): | |||
| 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) | 33 | current_file = mat.create_class_file(dirty) |
| 34 | meta_list = dict({"fixme":"please"},) | 34 | meta_list = ('exif', 'photoshop', 'adobe') |
| 35 | self.assertEqual(current_file.get_meta(), meta_list) | 35 | self.assertEqual(current_file.get_meta(), meta_list) |
| 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) | 40 | current_file = mat.create_class_file(clean) |
| 41 | self.assertEqual(current_file.get_meta(), dict()) #dirty, isn't it ? | 41 | self.assertEqual(current_file.get_meta(), list()) |
| 42 | 42 | ||
| 43 | 43 | ||
| 44 | class Test_isClean_lib(test.MATTest): | 44 | class Test_isClean_lib(test.MATTest): |
| @@ -46,13 +46,13 @@ class Test_isClean_lib(test.MATTest): | |||
| 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) | 48 | current_file = mat.create_class_file(dirty) |
| 49 | self.assertTrue(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) | 54 | current_file = mat.create_class_file(clean) |
| 55 | self.assertFalse(current_file.is_clean()) | 55 | self.assertTrue(current_file.is_clean()) |
| 56 | 56 | ||
| 57 | 57 | ||
| 58 | if __name__ == '__main__': | 58 | if __name__ == '__main__': |
diff --git a/test/test.py b/test/test.py index f095157..f095157 100755..100644 --- a/test/test.py +++ b/test/test.py | |||
