Lines Matching refs:AndReturn
51 utils.is_moblab().AndReturn(is_moblab)
63 mockFile.readline().AndReturn(line)
66 open(path).AndReturn(mockFile)
82 config_mock.get_sections().AndReturn(['section1', 'section2'])
84 config_mock.config.items('section1').AndReturn([('item1', 'value1'),
86 config_mock.config.items('section2').AndReturn([('item3', 'value3'),
107 lsbrelease_utils.is_moblab().AndReturn(True)
115 moblab_rpc_interface._CONFIG.shadow_file).AndReturn(
119 mockShadowFile.__enter__().AndReturn(mockShadowFileContents)
123 'w').AndReturn(mockShadowFile)
150 mockFile.__enter__().AndReturn(file_contents)
152 open(config_mock.shadow_file, 'w').AndReturn(mockFile)
166 moblab_rpc_interface.os.path.exists(launch_control_key).AndReturn(
182 moblab_rpc_interface._get_network_info().AndReturn(('10.0.0.1', True))
197 moblab_rpc_interface._get_network_info().AndReturn((None, False))
212 moblab_rpc_interface._get_network_info().AndReturn(('10.0.0.1', False))
228 'CROS', 'image_storage_server').AndReturn('gs://bucket1')
230 'CROS', 'results_storage_server', default=None).AndReturn(
233 moblab_rpc_interface._get_boto_config().AndReturn(config_mock)
234 config_mock.sections().AndReturn(['Credentials', 'b'])
235 config_mock.options('Credentials').AndReturn(
238 'Credentials', 'gs_access_key_id').AndReturn('key')
240 'Credentials', 'gs_secret_access_key').AndReturn('secret')
266 'key', 'secret', 'gs://bucket1').AndReturn((True, None))
307 moblab_rpc_interface._read_original_config().AndReturn(original_config)
309 moblab_rpc_interface._CONFIG.shadow_file).AndReturn(shadow_config)
312 allow_blank=True, default='').AndReturn('value1')
315 allow_blank=True, default='').AndReturn('value2')
318 allow_blank=True, default='').AndReturn('blah')
321 allow_blank=True, default='').AndReturn('blah')
352 moblab_rpc_interface._read_original_config().AndReturn(original_config)
354 moblab_rpc_interface._CONFIG.shadow_file).AndReturn(shadow_config)
357 allow_blank=True, default='').AndReturn('value5')
360 allow_blank=True, default='').AndReturn('blah')
376 'CROS', 'image_storage_server').AndReturn('gs://bucket1/')
380 StringIO.StringIO().AndReturn(output)
381 output.getvalue().AndReturn(
408 moblab_rpc_interface.GsUtil.get_gsutil_cmd().AndReturn(
413 stdout_tee=mox.IgnoreArg()).AndReturn(output)
428 moblab_rpc_interface.GsUtil.get_gsutil_cmd().AndReturn(
454 'CROS', 'image_storage_server').AndReturn('gs://bucket1/')
457 moblab_rpc_interface.GsUtil.get_gsutil_cmd().AndReturn(
472 'CROS', 'image_storage_server').AndReturn('gs://bucket1/')
475 moblab_rpc_interface.GsUtil.get_gsutil_cmd().AndReturn(