From 29763bdc956f84dd134b983b9ff006a3109d6ea8 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sun, 25 Dec 2011 18:35:24 +0100 Subject: A little more pep8 for the testsuite --- test/clitest.py | 2 ++ test/libtest.py | 2 ++ test/test.py | 3 ++- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/test/clitest.py b/test/clitest.py index 10ebff9..9232745 100644 --- a/test/clitest.py +++ b/test/clitest.py @@ -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, ...) diff --git a/test/libtest.py b/test/libtest.py index a679544..6217b69 100644 --- a/test/libtest.py +++ b/test/libtest.py @@ -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, ...) diff --git a/test/test.py b/test/test.py index 9b440ca..64072b8 100644 --- a/test/test.py +++ b/test/test.py @@ -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 -- cgit v1.3