def test_attr_returns_null_from_null_pointer(self): with self.assertRaises(ValueError): Attribute.from_pointer(ffi.NULL)
def test_pointers_identical(self): a = Attribute.from_size_absolute(8) b = a._pointer c = Attribute.from_pointer(b) assert a == c