(self)
| 1376 | |
| 1377 | |
| 1378 | def copy(self): |
| 1379 | patcher = _patch( |
| 1380 | self.getter, self.attribute, self.new, self.spec, |
| 1381 | self.create, self.spec_set, |
| 1382 | self.autospec, self.new_callable, self.kwargs |
| 1383 | ) |
| 1384 | patcher.attribute_name = self.attribute_name |
| 1385 | patcher.additional_patchers = [ |
| 1386 | p.copy() for p in self.additional_patchers |
| 1387 | ] |
| 1388 | return patcher |
| 1389 | |
| 1390 | |
| 1391 | def __call__(self, func): |
no test coverage detected