コード例 #1
0
def test_create_parser_03():
    args = ['Test', '2000']

    parser = create_parser()
    parsed_args = parser.parse_args(args)
    assert parsed_args.conference_abbrev == 'Test'
    assert parsed_args.year == 2000
コード例 #2
0
def test_create_parser_02():
    args = ['Test', 'year']

    parser = create_parser()
    try:
        parsed_args = parser.parse_args(args)
        assert False
    except SystemExit:
        pass