コード例 #1
0
def test_UVARI_len_raises():
    with pytest.raises(RepCode.ExceptionRepCode) as err:
        RepCode.UVARI_len(b'', -1)
    assert err.value.args[0] == 'Index can not be negative.'
コード例 #2
0
def test_UVARI_len(ld, expected):
    result = RepCode.UVARI_len(ld.bytes, 0)
    assert result == expected