diff options
| author | jvoisin | 2011-12-25 18:35:24 +0100 |
|---|---|---|
| committer | jvoisin | 2011-12-25 18:35:24 +0100 |
| commit | 29763bdc956f84dd134b983b9ff006a3109d6ea8 (patch) | |
| tree | 47290bed32f1fd4741f4988d7b581dbcc2eb694a | |
| parent | 6c64102d7e5185374e581b170d0a10ca77746d1e (diff) | |
A little more pep8 for the testsuite
| -rw-r--r-- | test/clitest.py | 2 | ||||
| -rw-r--r-- | test/libtest.py | 2 | ||||
| -rw-r--r-- | test/test.py | 3 |
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('..') | |||
| 11 | from mat import mat | 11 | from mat import mat |
| 12 | import test | 12 | import test |
| 13 | 13 | ||
| 14 | |||
| 14 | class TestRemovecli(test.MATTest): | 15 | class 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 | |||
| 75 | class TestFileAttributes(unittest.TestCase): | 77 | class 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 | |||
| 10 | sys.path.append('..') | 10 | sys.path.append('..') |
| 11 | from mat import mat | 11 | from mat import mat |
| 12 | 12 | ||
| 13 | |||
| 13 | class TestRemovelib(test.MATTest): | 14 | class 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 | |||
| 67 | class TestFileAttributes(unittest.TestCase): | 69 | class 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 | ||
| 18 | clean = glob.glob('clean*') | 18 | clean = glob.glob('clean*') |
| 19 | clean.sort() | 19 | clean.sort() |
| 20 | dirty = glob.glob('dirty*') | 20 | dirty = glob.glob('dirty*') |
| 21 | dirty.sort() | 21 | dirty.sort() |
| 22 | 22 | ||
| 23 | FILE_LIST = zip(clean, dirty) | 23 | FILE_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 | |||
| 65 | def main(): | 66 | def main(): |
| 66 | import clitest | 67 | import clitest |
| 67 | import libtest | 68 | import libtest |
