def test_parse_argsEmpty(self): argv = [] self.assertEqual(python4.parse_args(argv), 0)
def test_parse_argsOptions(self): argv = ['myname.py', '-a', 'arg_a', '-b', 'arg_b', 'one', 'two'] expect = len(argv) self.assertEqual(python4.parse_args(argv), expect)
def test_parse_argsNone(self): argv = None self.assertEqual(python4.parse_args(argv), 0)