示例#1
0
def test_parse_referent(referent):
    ret = parse_bytecode(referent)
示例#2
0
def test_file_input():
    with open(complete_test_file, 'r') as fp:
        src = fp.read()

    ret = parse_bytecode(src)
示例#3
0
def test_parse_prolix_desc(prolix_desc):
    ret = parse_bytecode(prolix_desc)
示例#4
0
def test_parse_badline_syntaxerror(badline):
    with pytest.raises(SyntaxError):
        ret = parse_bytecode(badline)
示例#5
0
def test_parse_add_fragment_opname(add_fragment):
    ret = parse_bytecode(add_fragment)
    ret[2].opname == "BINARY_ADD"
示例#6
0
def test_parse_add_fragment_offset(add_fragment):
    ret = parse_bytecode(add_fragment)
    ret[3].offset == 7
示例#7
0
def test_parse_add_fragment_lineno(add_fragment):
    ret = parse_bytecode(add_fragment)
    ret[1].lineno == 2