diff options
| author | jvoisin | 2019-08-01 08:14:21 -0700 |
|---|---|---|
| committer | jvoisin | 2019-08-01 08:14:21 -0700 |
| commit | d76a6cbb1832fb3337171edeb38e38b498ba4ef9 (patch) | |
| tree | 9dae0907d481c6cc2be74bf77e017b23732f4fab /tests | |
| parent | 49e0c43ac59dc67619178211eda718ac5e5f8478 (diff) | |
Some arguments of mat2 are mutually exclusive
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_climat2.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/test_climat2.py b/tests/test_climat2.py index 4a46644..bbb9c06 100644 --- a/tests/test_climat2.py +++ b/tests/test_climat2.py | |||
| @@ -20,16 +20,18 @@ class TestHelp(unittest.TestCase): | |||
| 20 | def test_help(self): | 20 | def test_help(self): |
| 21 | proc = subprocess.Popen(mat2_binary + ['--help'], stdout=subprocess.PIPE) | 21 | proc = subprocess.Popen(mat2_binary + ['--help'], stdout=subprocess.PIPE) |
| 22 | stdout, _ = proc.communicate() | 22 | stdout, _ = proc.communicate() |
| 23 | self.assertIn(b'usage: mat2 [-h] [-v] [-l] [--check-dependencies] [-V]', | 23 | self.assertIn(b'mat2 [-h] [-V] [--unknown-members policy] [-v] [-l]', |
| 24 | stdout) | 24 | stdout) |
| 25 | self.assertIn(b'[--unknown-members policy] [-s | -L]', stdout) | 25 | self.assertIn(b'[--check-dependencies] [-L | -s]', stdout) |
| 26 | self.assertIn(b'[files [files ...]]', stdout) | ||
| 26 | 27 | ||
| 27 | def test_no_arg(self): | 28 | def test_no_arg(self): |
| 28 | proc = subprocess.Popen(mat2_binary, stdout=subprocess.PIPE) | 29 | proc = subprocess.Popen(mat2_binary, stdout=subprocess.PIPE) |
| 29 | stdout, _ = proc.communicate() | 30 | stdout, _ = proc.communicate() |
| 30 | self.assertIn(b'usage: mat2 [-h] [-v] [-l] [--check-dependencies] [-V]', | 31 | self.assertIn(b'mat2 [-h] [-V] [--unknown-members policy] [-v] [-l]', |
| 31 | stdout) | 32 | stdout) |
| 32 | self.assertIn(b'[--unknown-members policy] [-s | -L]', stdout) | 33 | self.assertIn(b'[--check-dependencies] [-L | -s]', stdout) |
| 34 | self.assertIn(b'[files [files ...]]', stdout) | ||
| 33 | 35 | ||
| 34 | 36 | ||
| 35 | class TestVersion(unittest.TestCase): | 37 | class TestVersion(unittest.TestCase): |
