diff options
| author | jvoisin | 2015-12-30 17:15:23 +0100 |
|---|---|---|
| committer | jvoisin | 2015-12-30 17:15:23 +0100 |
| commit | 3696b59badfef2438a3df1755868b2aeeb443b87 (patch) | |
| tree | a2cc0035c2397ac5bb043b3fa9711f6bd3585923 /test/clitest.py | |
| parent | 3ac3f353c64d406aa2fa46c5c9841346408e1e01 (diff) | |
Fix some pep8-related issues
Diffstat (limited to 'test/clitest.py')
| -rw-r--r-- | test/clitest.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/clitest.py b/test/clitest.py index e186531..884655f 100644 --- a/test/clitest.py +++ b/test/clitest.py | |||
| @@ -136,10 +136,11 @@ class TestUnsupported(test.MATTest): | |||
| 136 | tar.close() | 136 | tar.close() |
| 137 | proc = subprocess.Popen(['mat', tarpath], stdout=subprocess.PIPE) | 137 | proc = subprocess.Popen(['mat', tarpath], stdout=subprocess.PIPE) |
| 138 | stdout, _ = proc.communicate() | 138 | stdout, _ = proc.communicate() |
| 139 | self.assertTrue('It contains unsupported filetypes:' \ | 139 | self.assertTrue('It contains unsupported filetypes:' |
| 140 | '\n- libtest.py\n- test.py\n- clitest.py\n' | 140 | '\n- libtest.py\n- test.py\n- clitest.py\n' |
| 141 | in str(stdout)) | 141 | in str(stdout)) |
| 142 | 142 | ||
| 143 | |||
| 143 | class TestHelp(test.MATTest): | 144 | class TestHelp(test.MATTest): |
| 144 | """ Test the different ways to trigger help """ | 145 | """ Test the different ways to trigger help """ |
| 145 | def test_dash_h(self): | 146 | def test_dash_h(self): |
| @@ -164,6 +165,7 @@ class TestHelp(test.MATTest): | |||
| 164 | _, stderr = proc.communicate() | 165 | _, stderr = proc.communicate() |
| 165 | self.assertTrue(('usage: mat [-h]' and ' error: unrecognized arguments:') in stderr) | 166 | self.assertTrue(('usage: mat [-h]' and ' error: unrecognized arguments:') in stderr) |
| 166 | 167 | ||
| 168 | |||
| 167 | def get_tests(): | 169 | def get_tests(): |
| 168 | """ Return every clitests""" | 170 | """ Return every clitests""" |
| 169 | suite = unittest.TestSuite() | 171 | suite = unittest.TestSuite() |
