From bb83090afcd12893c301ef14869e84beda43ccb9 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Thu, 21 Jul 2011 21:15:09 +0200 Subject: Add the possibility to add (or not) unsupported fileformat to outputed archives fileformat (invasive patch, sorry about that). --- test/clitest.py | 4 ++-- test/libtest.py | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'test') diff --git a/test/clitest.py b/test/clitest.py index 91b71ca..f603f97 100644 --- a/test/clitest.py +++ b/test/clitest.py @@ -17,14 +17,14 @@ class Test_Remove_cli(test.MATTest): '''make sure that the cli remove all compromizing meta''' for clean, dirty in self.file_list: subprocess.call(['../cli.py', dirty]) - current_file = mat.create_class_file(dirty, False) + current_file = mat.create_class_file(dirty, False, True) self.assertTrue(current_file.is_clean()) def test_remove_empty(self): '''Test removal with clean files''' for clean, dirty in self.file_list: subprocess.call(['../cli.py', clean]) - current_file = mat.create_class_file(clean, False) + current_file = mat.create_class_file(clean, False, True) self.assertTrue(current_file.is_clean()) 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): def test_remove(self): '''make sure that the lib remove all compromizing meta''' for clean, dirty in self.file_list: - current_file = mat.create_class_file(dirty, False) + current_file = mat.create_class_file(dirty, False, True) current_file.remove_all() self.assertTrue(current_file.is_clean()) def test_remove_empty(self): '''Test removal with clean files''' for clean, dirty in self.file_list: - current_file = mat.create_class_file(clean, False) + current_file = mat.create_class_file(clean, False, True) current_file.remove_all() self.assertTrue(current_file.is_clean()) @@ -30,14 +30,14 @@ class Test_List_lib(test.MATTest): def test_list(self): '''check if get_meta returns all the expected meta''' for clean, dirty in self.file_list: - current_file = mat.create_class_file(dirty, False) + current_file = mat.create_class_file(dirty, False, True) #FIXME assertisNotNone() : python 2.7 self.assertTrue(current_file.get_meta()) def testlist_list_empty(self): '''check that a listing of a clean file return an empty dict''' for clean, dirty in self.file_list: - current_file = mat.create_class_file(clean, False) + current_file = mat.create_class_file(clean, False, True) self.assertEqual(current_file.get_meta(), dict()) @@ -45,13 +45,13 @@ class Test_isClean_lib(test.MATTest): def test_dirty(self): '''test is_clean on clean files''' for clean, dirty in self.file_list: - current_file = mat.create_class_file(dirty, False) + current_file = mat.create_class_file(dirty, False, True) self.assertFalse(current_file.is_clean()) def test_clean(self): '''test is_clean on dirty files''' for clean, dirty in self.file_list: - current_file = mat.create_class_file(clean, False) + current_file = mat.create_class_file(clean, False, True) self.assertTrue(current_file.is_clean()) -- cgit v1.3