summaryrefslogtreecommitdiff
path: root/tests/test_climat2.py
diff options
context:
space:
mode:
authorjvoisin2018-09-05 17:22:17 +0200
committerjvoisin2018-09-05 17:26:09 +0200
commit46bb1b83ea0843c25783f86e2033a10aeaed79d2 (patch)
tree3446382de51c0a861f4158f6be9e65bcf94b06ad /tests/test_climat2.py
parent1d7e374e5b0c6a84b3319d9d1e7c6f5c222af878 (diff)
Improve the previous commit
Diffstat (limited to '')
-rw-r--r--tests/test_climat2.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_climat2.py b/tests/test_climat2.py
index 6ee84d5..9614347 100644
--- a/tests/test_climat2.py
+++ b/tests/test_climat2.py
@@ -8,13 +8,13 @@ class TestHelp(unittest.TestCase):
8 def test_help(self): 8 def test_help(self):
9 proc = subprocess.Popen(['./mat2', '--help'], stdout=subprocess.PIPE) 9 proc = subprocess.Popen(['./mat2', '--help'], stdout=subprocess.PIPE)
10 stdout, _ = proc.communicate() 10 stdout, _ = proc.communicate()
11 self.assertIn(b'usage: mat2 [-h] [-v] [-l] [-c] [-V] [-u POLICY] [-s | -L] [files [files ...]]', 11 self.assertIn(b'usage: mat2 [-h] [-v] [-l] [-c] [-V] [-u policy] [-s | -L] [files [files ...]]',
12 stdout) 12 stdout)
13 13
14 def test_no_arg(self): 14 def test_no_arg(self):
15 proc = subprocess.Popen(['./mat2'], stdout=subprocess.PIPE) 15 proc = subprocess.Popen(['./mat2'], stdout=subprocess.PIPE)
16 stdout, _ = proc.communicate() 16 stdout, _ = proc.communicate()
17 self.assertIn(b'usage: mat2 [-h] [-v] [-l] [-c] [-V] [-u POLICY] [-s | -L] [files [files ...]]', 17 self.assertIn(b'usage: mat2 [-h] [-v] [-l] [-c] [-V] [-u policy] [-s | -L] [files [files ...]]',
18 stdout) 18 stdout)
19 19
20 20