manga_up/tests/test_arguments.py

12 lines
306 B
Python
Raw Normal View History

2021-06-25 17:58:08 +00:00
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()