def tearDown(self): BasicMixin.tearDown(self) # Un-monkey patch possible modules global originalBootstrapBuildout global originalLaunchBuildout utils.bootstrapBuildout = originalBootstrapBuildout utils.launchBuildout = originalLaunchBuildout
def setUp(self): BasicMixin.setUp(self) os.mkdir(self.software_root) self.signature_private_key_file = '/signature/private/key_file' self.upload_cache_url = 'http://example.com/uploadcache' self.upload_dir_url = 'http://example.com/uploaddir' self.shacache_cert_file = '/path/to/shacache/cert/file' self.shacache_key_file = '/path/to/shacache/key/file' self.shadir_cert_file = '/path/to/shadir/cert/file' self.shadir_key_file = '/path/to/shadir/key/file'
def tearDown(self): global originalBootstrapBuildout global originalLaunchBuildout BasicMixin.tearDown(self) FakeCallAndRead.external_command_list = [] # Un-monkey patch utils module utils.bootstrapBuildout = originalBootstrapBuildout utils.launchBuildout = originalLaunchBuildout SlapObject.Software._install_from_buildout = original_install_from_buildout networkcache.upload_network_cached = original_upload_network_cached SlapObject.Software.uploadSoftwareRelease = originalUploadSoftwareRelease
def setUp(self): BasicMixin.setUp(self) os.mkdir(self.software_root) self.signature_private_key_file = '/signature/private/key_file' self.upload_cache_url = 'http://example.com/uploadcache' self.upload_dir_url = 'http://example.com/uploaddir' self.shacache_cert_file = '/path/to/shacache/cert/file' self.shacache_key_file = '/path/to/shacache/key/file' self.shadir_cert_file = '/path/to/shadir/cert/file' self.shadir_key_file = '/path/to/shadir/key/file' # Monkey patch utils module utils.bootstrapBuildout = FakeCallAndRead utils.launchBuildout = FakeCallAndRead
def setUp(self): BasicMixin.setUp(self) os.mkdir(self.software_root) os.mkdir(self.instance_root)
def tearDown(self): BasicMixin.tearDown(self) FakeCallAndRead.external_command_list = []