diff --git a/tests/test_climat2.py b/tests/test_climat2.py index cf7a63b1def904ebc68785298c414a21ff100440..31827f719bb4cfc6f33efdebe06b45990f05e18f 100644 --- a/tests/test_climat2.py +++ b/tests/test_climat2.py @@ -9,6 +9,11 @@ class TestHelp(unittest.TestCase): stdout, _ = proc.communicate() self.assertIn(b'usage: main.py [-h] [-c] [-l] [-s] [files [files ...]]', stdout) + def test_no_arg(self): + proc = subprocess.Popen(['./main.py'], stdout=subprocess.PIPE) + stdout, _ = proc.communicate() + self.assertIn(b'usage: main.py [-h] [-c] [-l] [-s] [files [files ...]]', stdout) + class TestGetMeta(unittest.TestCase): def test_pdf(self): proc = subprocess.Popen(['./main.py', '--show', './tests/data/dirty.pdf'],