diff options
| -rw-r--r-- | tests/test_climat2.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_climat2.py b/tests/test_climat2.py index cf7a63b..31827f7 100644 --- a/tests/test_climat2.py +++ b/tests/test_climat2.py | |||
| @@ -9,6 +9,11 @@ class TestHelp(unittest.TestCase): | |||
| 9 | stdout, _ = proc.communicate() | 9 | stdout, _ = proc.communicate() |
| 10 | self.assertIn(b'usage: main.py [-h] [-c] [-l] [-s] [files [files ...]]', stdout) | 10 | self.assertIn(b'usage: main.py [-h] [-c] [-l] [-s] [files [files ...]]', stdout) |
| 11 | 11 | ||
| 12 | def test_no_arg(self): | ||
| 13 | proc = subprocess.Popen(['./main.py'], stdout=subprocess.PIPE) | ||
| 14 | stdout, _ = proc.communicate() | ||
| 15 | self.assertIn(b'usage: main.py [-h] [-c] [-l] [-s] [files [files ...]]', stdout) | ||
| 16 | |||
| 12 | class TestGetMeta(unittest.TestCase): | 17 | class TestGetMeta(unittest.TestCase): |
| 13 | def test_pdf(self): | 18 | def test_pdf(self): |
| 14 | proc = subprocess.Popen(['./main.py', '--show', './tests/data/dirty.pdf'], | 19 | proc = subprocess.Popen(['./main.py', '--show', './tests/data/dirty.pdf'], |
