Home | History | Annotate | Download | only in test

Lines Matching refs:objcopy

498     def assert_is_copy(self, obj, objcopy, msg=None):
502 msg = "{!r} is not a copy of {!r}".format(obj, objcopy)
503 self.assertEqual(obj, objcopy, msg=msg)
504 self.assertIs(type(obj), type(objcopy), msg=msg)
506 self.assertDictEqual(obj.__dict__, objcopy.__dict__, msg=msg)
507 self.assertIsNot(obj.__dict__, objcopy.__dict__, msg=msg)
509 self.assertListEqual(obj.__slots__, objcopy.__slots__, msg=msg)
512 hasattr(obj, slot), hasattr(objcopy, slot), msg=msg)
514 getattr(objcopy, slot, None), msg=msg)