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.'
def test_UVARI_len(ld, expected): result = RepCode.UVARI_len(ld.bytes, 0) assert result == expected