(self)
| 1369 | |
| 1370 | |
| 1371 | def copy(self): |
| 1372 | patcher = _patch( |
| 1373 | self.getter, self.attribute, self.new, self.spec, |
| 1374 | self.create, self.spec_set, |
| 1375 | self.autospec, self.new_callable, self.kwargs |
| 1376 | ) |
| 1377 | patcher.attribute_name = self.attribute_name |
| 1378 | patcher.additional_patchers = [ |
| 1379 | p.copy() for p in self.additional_patchers |
| 1380 | ] |
| 1381 | return patcher |
| 1382 | |
| 1383 | |
| 1384 | def __call__(self, func): |
no test coverage detected