Commit 29763bdc authored by jvoisin's avatar jvoisin
Browse files

A little more pep8 for the testsuite

parent 6c64102d
......@@ -11,6 +11,7 @@ sys.path.append('..')
from mat import mat
import test
class TestRemovecli(test.MATTest):
'''
test if cli correctly remove metadatas
......@@ -72,6 +73,7 @@ class TestisCleancli(test.MATTest):
stdout, _ = proc.communicate()
self.assertEqual(stdout.strip('\n'), '[+] %s is not clean' % dirty)
class TestFileAttributes(unittest.TestCase):
'''
test various stuffs about files (readable, writable, exist, ...)
......
......@@ -10,6 +10,7 @@ import sys
sys.path.append('..')
from mat import mat
class TestRemovelib(test.MATTest):
'''
test the remove_all() method
......@@ -64,6 +65,7 @@ class TestisCleanlib(test.MATTest):
current_file = mat.create_class_file(clean, False, True)
self.assertTrue(current_file.is_clean())
class TestFileAttributes(unittest.TestCase):
'''
test various stuffs about files (readable, writable, exist, ...)
......
......@@ -17,7 +17,7 @@ VERBOSITY = 3
clean = glob.glob('clean*')
clean.sort()
dirty = glob.glob('dirty*')
dirty = glob.glob('dirty*')
dirty.sort()
FILE_LIST = zip(clean, dirty)
......@@ -62,6 +62,7 @@ class MATTest(unittest.TestCase):
'''
shutil.rmtree(self.tmpdir)
def main():
import clitest
import libtest
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment