def test_relative8_inequality_different_types(offset): assert Relative8(offset) != object()
def test_relative8_equal_hash(offset): assert hash(Relative8(offset)) == hash(Relative8(offset))
def test_relative8_inequality(a, b): assume(a != b) assert Relative8(a) != Relative8(b)
def test_relative8_equality(offset): assert Relative8(offset) == Relative8(offset)
def test_relative8_repr(offset): r = repr(Relative8(offset)) assert r.startswith('Relative8') assert str(offset) in r assert check_balanced(r)
def test_relative8_two_byte_offsets_raise_value_error(offset): with raises(ValueError): Relative8(offset)
def test_relative8_value(offset): assert Relative8(offset).offset == offset