def test_copy_deepcopy_pickle(self):
    r = F(13, 7)
    dr = DummyFraction(13, 7)
    self.assertEqual(r, loads(dumps(r)))
    self.assertEqual(id(r), id(copy(r)))
    self.assertEqual(id(r), id(deepcopy(r)))
    self.assertNotEqual(id(dr), id(copy(dr)))
    self.assertNotEqual(id(dr), id(deepcopy(dr)))
    self.assertTypedEquals(dr, copy(dr))
    self.assertTypedEquals(dr, deepcopy(dr))
def test_copy_deepcopy_pickle(self):
    r = F(13, 7)
    dr = DummyFraction(13, 7)
    self.assertEqual(r, loads(dumps(r)))
    self.assertEqual(id(r), id(copy(r)))
    self.assertEqual(id(r), id(deepcopy(r)))
    self.assertNotEqual(id(dr), id(copy(dr)))
    self.assertNotEqual(id(dr), id(deepcopy(dr)))
    self.assertTypedEquals(dr, copy(dr))
    self.assertTypedEquals(dr, deepcopy(dr))