1
0
Fork 0
mat2/tests/test_climat2.py

11 lines
315 B
Python
Raw Normal View History

2018-04-04 00:22:00 +02:00
import unittest
import subprocess
import os
class TestHelp(unittest.TestCase):
def test_help(self):
proc = subprocess.Popen(['./main.py', '--help'], stdout=subprocess.PIPE)
stdout, _ = proc.communicate()
self.assertIn(b'usage: main.py [-h] [-c] [-l] [-s] [files [files ...]]', stdout)