@@ -0,0 +1,727 @@
+%0Aimport os%0Afrom unittest import TestCase%0A%0Afrom openrcv.scripts.main import ArgParser, HelpRequested, UsageException%0Afrom openrcv.scripts.rcv import run_rcv%0A%0A%0A# TODO: add a test for good args.%0A# TODO: test --help.%0Aclass ModuleTestCase(TestCase):%0A%0A    def test_run_rcv(self):%0A        with self.assertRaises(UsageException) as cm:%0A            run_rcv(%5B%22prog.py%22%5D)%0A        err = cm.exception%0A        self.assertEqual(err.args, ('the following arguments are required: INPUT_PATH', ))%0A        parser = err.parser%0A        self.assertEqual(type(parser), ArgParser)%0A        self.assertEqual(parser.prog, %22rcv%22)%0A%0A    def test_run_rcv__help(self):%0A        with self.assertRaises(HelpRequested):%0A            run_rcv(%5B%22prog.py%22, %22--help%22%5D)%0A

Add test_rcv.