Example #1
0
 def test_boxed_c_equality(self):
     boxed = Everything.TestBoxedC()
     # TestBoxedC uses refcounting, so we know that
     # the pointer is the same when copied
     copy = boxed.copy()
     self.assertEqual(boxed, copy)
     self.assertNotEqual(id(boxed), id(copy))