예제 #1
0
 def test_attr_returns_null_from_null_pointer(self):
     with self.assertRaises(ValueError):
         Attribute.from_pointer(ffi.NULL)
예제 #2
0
 def test_pointers_identical(self):
     a = Attribute.from_size_absolute(8)
     b = a._pointer
     c = Attribute.from_pointer(b)
     assert a == c