def test_set_context(self): capsule = test_py3c.capsule_new() test_py3c.capsule_setcontext(capsule, TEST_DATA) self.assertEqual(test_py3c.capsule_getcontext(capsule), TEST_DATA)
def test_get_context(self): capsule = test_py3c.capsule_new() self.assertEqual(test_py3c.capsule_getcontext(capsule), None)