(self)
| 343 | self.assertEqual(signature(f_copy), signature(f)) |
| 344 | |
| 345 | def test_copy(self): |
| 346 | f = self.partial(signature, ['asdf'], bar=[True]) |
| 347 | f.attr = [] |
| 348 | f_copy = copy.copy(f) |
| 349 | self.assertEqual(signature(f_copy), signature(f)) |
| 350 | self.assertIs(f_copy.attr, f.attr) |
| 351 | self.assertIs(f_copy.args, f.args) |
| 352 | self.assertIs(f_copy.keywords, f.keywords) |
| 353 | |
| 354 | def test_deepcopy(self): |
| 355 | f = self.partial(signature, ['asdf'], bar=[True]) |
nothing calls this directly
no test coverage detected