def patch_and_capture_env_for_download_all_boot_resources(self):
class CaptureEnv:
"""Fake function; records a copy of the environment."""
def __call__(self, *args, **kwargs):
self.args = args
self.env = environ.copy()
capture = self.patch(
bootresources, 'download_all_boot_resources', CaptureEnv())
return capture
评论列表
文章目录