Add test_argument_required
This commit is contained in:
parent
4623f63bed
commit
59f8adf860
|
@ -0,0 +1,12 @@
|
||||||
|
from subprocess import CalledProcessError
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
class FirstTestClass(unittest.TestCase):
|
||||||
|
|
||||||
|
def test_argument_required(self):
|
||||||
|
import subprocess
|
||||||
|
with self.assertRaises(CalledProcessError):
|
||||||
|
subprocess.check_output(['python', 'manga_up'])
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
Loading…
Reference in New Issue