def test_get_pointer(self): capsule = test_py3c.capsule_new() self.assertTrue(test_py3c.capsule_getpointer_check(capsule)) if not CAPSULE_THUNK: self.assertRaises(ValueError, test_py3c.capsule_getpointer_nullname_check, capsule)
def test_setpointer(self): capsule = test_py3c.capsule_new() self.assertTrue(test_py3c.capsule_getpointer_check(capsule)) test_py3c.capsule_setpointer(capsule) self.assertTrue(test_py3c.capsule_getpointer_check_other(capsule))