summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjvoisin2011-12-25 18:35:24 +0100
committerjvoisin2011-12-25 18:35:24 +0100
commit29763bdc956f84dd134b983b9ff006a3109d6ea8 (patch)
tree47290bed32f1fd4741f4988d7b581dbcc2eb694a
parent6c64102d7e5185374e581b170d0a10ca77746d1e (diff)
A little more pep8 for the testsuite
-rw-r--r--test/clitest.py2
-rw-r--r--test/libtest.py2
-rw-r--r--test/test.py3
3 files changed, 6 insertions, 1 deletions
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('..')
11from mat import mat 11from mat import mat
12import test 12import test
13 13
14
14class TestRemovecli(test.MATTest): 15class TestRemovecli(test.MATTest):
15 ''' 16 '''
16 test if cli correctly remove metadatas 17 test if cli correctly remove metadatas
@@ -72,6 +73,7 @@ class TestisCleancli(test.MATTest):
72 stdout, _ = proc.communicate() 73 stdout, _ = proc.communicate()
73 self.assertEqual(stdout.strip('\n'), '[+] %s is not clean' % dirty) 74 self.assertEqual(stdout.strip('\n'), '[+] %s is not clean' % dirty)
74 75
76
75class TestFileAttributes(unittest.TestCase): 77class TestFileAttributes(unittest.TestCase):
76 ''' 78 '''
77 test various stuffs about files (readable, writable, exist, ...) 79 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
10sys.path.append('..') 10sys.path.append('..')
11from mat import mat 11from mat import mat
12 12
13
13class TestRemovelib(test.MATTest): 14class TestRemovelib(test.MATTest):
14 ''' 15 '''
15 test the remove_all() method 16 test the remove_all() method
@@ -64,6 +65,7 @@ class TestisCleanlib(test.MATTest):
64 current_file = mat.create_class_file(clean, False, True) 65 current_file = mat.create_class_file(clean, False, True)
65 self.assertTrue(current_file.is_clean()) 66 self.assertTrue(current_file.is_clean())
66 67
68
67class TestFileAttributes(unittest.TestCase): 69class TestFileAttributes(unittest.TestCase):
68 ''' 70 '''
69 test various stuffs about files (readable, writable, exist, ...) 71 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
17 17
18clean = glob.glob('clean*') 18clean = glob.glob('clean*')
19clean.sort() 19clean.sort()
20dirty = glob.glob('dirty*') 20dirty = glob.glob('dirty*')
21dirty.sort() 21dirty.sort()
22 22
23FILE_LIST = zip(clean, dirty) 23FILE_LIST = zip(clean, dirty)
@@ -62,6 +62,7 @@ class MATTest(unittest.TestCase):
62 ''' 62 '''
63 shutil.rmtree(self.tmpdir) 63 shutil.rmtree(self.tmpdir)
64 64
65
65def main(): 66def main():
66 import clitest 67 import clitest
67 import libtest 68 import libtest