Beispiel #1
0
 def test_parse_argsEmpty(self):
     argv = []
     self.assertEqual(python4.parse_args(argv), 0)
Beispiel #2
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)
Beispiel #3
0
 def test_parse_argsNone(self):
     argv = None
     self.assertEqual(python4.parse_args(argv), 0)