def test_remove_empty(self):
     '''Test removal with clean files'''
     for clean, _ in self.file_list:
         subprocess.call(['../mat-cli', clean])
         current_file = mat.create_class_file(clean, False, True)
         self.assertTrue(current_file.is_clean())
 def test_clean(self):
     '''test is_clean on dirty files'''
     for clean, _ in self.file_list:
         current_file = mat.create_class_file(clean, False, True)
         self.assertTrue(current_file.is_clean())
 def test_remove(self):
     '''make sure that the cli remove all compromizing meta'''
     for _, dirty in self.file_list:
         subprocess.call(['../mat-cli', dirty])
         current_file = mat.create_class_file(dirty, False, True)
         self.assertTrue(current_file.is_clean())
 def testlist_list_empty(self):
     '''check that a listing of a clean file return an empty dict'''
     for clean, _ in self.file_list:
         current_file = mat.create_class_file(clean, False, True)
         self.assertEqual(current_file.get_meta(), dict())
 def test_dirty(self):
     '''test is_clean on clean files'''
     for _, dirty in self.file_list:
         current_file = mat.create_class_file(dirty, False, True)
         self.assertFalse(current_file.is_clean())
 def test_remove_empty(self):
     '''Test removal with clean files'''
     for clean, _ in self.file_list:
         current_file = mat.create_class_file(clean, False, True)
         current_file.remove_all()
         self.assertTrue(current_file.is_clean())
 def test_list(self):
     '''check if get_meta returns all the expected meta'''
     for _, dirty in self.file_list:
         current_file = mat.create_class_file(dirty, False, True)
         #FIXME assertisNotNone() : python 2.7
         self.assertTrue(current_file.get_meta())
 def test_clean(self):
     '''test is_clean on dirty files'''
     for clean, _ in self.file_list:
         current_file = mat.create_class_file(clean, False, True)
         self.assertTrue(current_file.is_clean())
 def test_remove(self):
     '''make sure that the lib remove all compromizing meta'''
     for _, dirty in self.file_list:
         current_file = mat.create_class_file(dirty, False, True)
         current_file.remove_all()
         self.assertTrue(current_file.is_clean())
 def testlist_list_empty(self):
     '''check that a listing of a clean file return an empty dict'''
     for clean, _ in self.file_list:
         current_file = mat.create_class_file(clean, False, True)
         self.assertEqual(current_file.get_meta(), dict())
 def test_dirty(self):
     '''test is_clean on clean files'''
     for _, dirty in self.file_list:
         current_file = mat.create_class_file(dirty, False, True)
         self.assertFalse(current_file.is_clean())
 def test_list(self):
     '''check if get_meta returns all the expected meta'''
     for _, dirty in self.file_list:
         current_file = mat.create_class_file(dirty, False, True)
         #FIXME assertisNotNone() : python 2.7
         self.assertTrue(current_file.get_meta())
 def test_remove_empty(self):
     '''Test removal with clean files'''
     for clean, _ in self.file_list:
         current_file = mat.create_class_file(clean, False, True)
         current_file.remove_all()
         self.assertTrue(current_file.is_clean())
 def test_remove(self):
     '''make sure that the lib remove all compromizing meta'''
     for _, dirty in self.file_list:
         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, _ in self.file_list:
         subprocess.call(['../mat-cli', clean])
         current_file = mat.create_class_file(clean, False, True)
         self.assertTrue(current_file.is_clean())
 def test_remove(self):
     '''make sure that the cli remove all compromizing meta'''
     for _, dirty in self.file_list:
         subprocess.call(['../mat-cli', dirty])
         current_file = mat.create_class_file(dirty, False, True)
         self.assertTrue(current_file.is_clean())