

def patch_dict(self, *args, **kwargs):
    patcher = patch.dict(*args, **kwargs)
    thing = patcher.start()
    self.addCleanup(patcher.stop)
    return thing

dataset/ETHPy150Open marcwebbie/passpie/tests/helpers.py MockerTestCase.patch_dict/original