Пример #1
0
 def test_parse_args_none(self):
     args = parse_args(argv=None)
     assert args.filenames == []
     assert args.verbose == 0
Пример #2
0
 def test_parse_args_vvv(self):
     args = parse_args(argv=["f1", "f2", "-vvv"])
     assert args.filenames == ["f1", "f2"]
     assert args.verbose == 3
Пример #3
0
 def test_parse_args_default(self):
     args = parse_args(argv=["f1", "f2"])
     assert args.filenames == ["f1", "f2"]
     assert args.verbose == 0