summaryrefslogtreecommitdiff
path: root/test/clitest.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/clitest.py')
-rw-r--r--test/clitest.py4
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
143class TestHelp(test.MATTest): 144class 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
167def get_tests(): 169def get_tests():
168 """ Return every clitests""" 170 """ Return every clitests"""
169 suite = unittest.TestSuite() 171 suite = unittest.TestSuite()