diff options
| author | jvoisin | 2018-07-09 00:13:16 +0200 |
|---|---|---|
| committer | jvoisin | 2018-07-09 00:13:16 +0200 |
| commit | bd357b85f866c8377f1d2a71f09ec2f4223c1592 (patch) | |
| tree | aebdbdb48fc94029b60345eccc6afe54c8c5127b /tests | |
| parent | 8c21006e6c2959a55ce8cb80758564eeea2ebde8 (diff) | |
Remove a useless option that was never implemented anyway
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_climat2.py | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/tests/test_climat2.py b/tests/test_climat2.py index a119884..9948057 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] [-c | -s | -L] [files [files ...]]', stdout) | 11 | self.assertIn(b'usage: mat2 [-h] [-v] [-l] [-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] [-c | -s | -L] [files [files ...]]', stdout) | 16 | self.assertIn(b'usage: mat2 [-h] [-v] [-l] [-s | -L] [files [files ...]]', stdout) |
| 17 | 17 | ||
| 18 | 18 | ||
| 19 | class TestVersion(unittest.TestCase): | 19 | class TestVersion(unittest.TestCase): |
| @@ -23,13 +23,6 @@ class TestVersion(unittest.TestCase): | |||
| 23 | self.assertTrue(stdout.startswith(b'MAT2 ')) | 23 | self.assertTrue(stdout.startswith(b'MAT2 ')) |
| 24 | 24 | ||
| 25 | 25 | ||
| 26 | class TestExclusiveArgs(unittest.TestCase): | ||
| 27 | def test_version(self): | ||
| 28 | proc = subprocess.Popen(['./mat2', '-s', '-c'], stdout=subprocess.PIPE, stderr=subprocess.PIPE) | ||
| 29 | stdout, stderr = proc.communicate() | ||
| 30 | self.assertIn(b'mat2: error: argument -c/--check: not allowed with argument -s/--show', stderr) | ||
| 31 | |||
| 32 | |||
| 33 | class TestReturnValue(unittest.TestCase): | 26 | class TestReturnValue(unittest.TestCase): |
| 34 | def test_nonzero(self): | 27 | def test_nonzero(self): |
| 35 | ret = subprocess.call(['./mat2', './mat2'], stdout=subprocess.DEVNULL) | 28 | ret = subprocess.call(['./mat2', './mat2'], stdout=subprocess.DEVNULL) |
