Exemplo n.º 1
0
def test_IDENT_len_raises():
    with pytest.raises(RepCode.ExceptionRepCode) as err:
        RepCode.IDENT_len(b'', -1)
    assert err.value.args[0] == 'Index can not be negative.'
Exemplo n.º 2
0
def test_IDENT_len(ld, expected):
    result = RepCode.IDENT_len(ld.bytes, 0)
    assert result == expected