summaryrefslogtreecommitdiff
path: root/tests/test_climat2.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_climat2.py')
-rw-r--r--tests/test_climat2.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/test_climat2.py b/tests/test_climat2.py
index 9948057..99f9b9c 100644
--- a/tests/test_climat2.py
+++ b/tests/test_climat2.py
@@ -8,12 +8,12 @@ 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] [-s | -L] [files [files ...]]', stdout) 11 self.assertIn(b'usage: mat2 [-h] [-v] [-l] [-c] [-s | -L] [files [files ...]]', stdout)
12 12
13 def test_no_arg(self): 13 def test_no_arg(self):
14 proc = subprocess.Popen(['./mat2'], stdout=subprocess.PIPE) 14 proc = subprocess.Popen(['./mat2'], stdout=subprocess.PIPE)
15 stdout, _ = proc.communicate() 15 stdout, _ = proc.communicate()
16 self.assertIn(b'usage: mat2 [-h] [-v] [-l] [-s | -L] [files [files ...]]', stdout) 16 self.assertIn(b'usage: mat2 [-h] [-v] [-l] [-c] [-s | -L] [files [files ...]]', stdout)
17 17
18 18
19class TestVersion(unittest.TestCase): 19class TestVersion(unittest.TestCase):
@@ -22,6 +22,11 @@ class TestVersion(unittest.TestCase):
22 stdout, _ = proc.communicate() 22 stdout, _ = proc.communicate()
23 self.assertTrue(stdout.startswith(b'MAT2 ')) 23 self.assertTrue(stdout.startswith(b'MAT2 '))
24 24
25class TestDependencies(unittest.TestCase):
26 def test_dependencies(self):
27 proc = subprocess.Popen(['./mat2', '--check-dependencies'], stdout=subprocess.PIPE)
28 stdout, _ = proc.communicate()
29 self.assertTrue(b'MAT2' in stdout)
25 30
26class TestReturnValue(unittest.TestCase): 31class TestReturnValue(unittest.TestCase):
27 def test_nonzero(self): 32 def test_nonzero(self):