Lines Matching refs:AndReturn
108 urllib2.urlopen(mox.StrContains(self.test_call)).AndReturn(
120 urllib2.urlopen(mox.StrContains(self.test_call)).AndReturn(
133 urllib2.urlopen(mox.StrContains(self.test_call), data=None).AndReturn(
147 self.hostname, utils.RESTRICTED_SUBNETS).AndReturn(
152 timeout=mox.IgnoreArg()).AndReturn(to_return)
164 self.hostname, utils.RESTRICTED_SUBNETS).AndReturn(
169 timeout=mox.IgnoreArg()).AndReturn(to_return)
182 self.hostname, utils.RESTRICTED_SUBNETS).AndReturn(
187 timeout=mox.IgnoreArg()).AndReturn(to_return)
211 self.hostname, utils.RESTRICTED_SUBNETS).AndReturn(
226 mox.StrContains(self.test_call), data=None).AndReturn(
270 dev_server._get_dev_server_list().MultipleTimes().AndReturn(
272 dev_server.ImageServer.devserver_healthy(DevServerTest._HOST).AndReturn(
283 dev_server._get_dev_server_list().MultipleTimes().AndReturn(
294 argument2, timeout=mox.IgnoreArg()).AndReturn(
315 dev_server._get_dev_server_list().MultipleTimes().AndReturn(
327 argument2, timeout=mox.IgnoreArg()).AndReturn(
346 dev_server.ImageServer.servers().MultipleTimes().AndReturn(
348 dev_server.ImageServer.devserver_healthy(host0_expected).AndReturn(True)
349 dev_server.ImageServer.devserver_healthy(host1_expected).AndReturn(True)
442 open(mox.IgnoreArg(), 'w').AndReturn(mock_file)
443 mock_file.__enter__().AndReturn(mock_file)
484 dev_server.ImageServerBase.run_call(argument1).AndReturn(
497 dev_server.ImageServerBase.run_call(argument2).AndReturn(
506 mox.IgnoreArg()).AndReturn(response3)
507 dev_server.ImageServerBase.run_call(argument3).AndReturn('log')
508 os.path.exists(mox.IgnoreArg()).AndReturn(True)
519 dev_server.ImageServerBase.run_call(argument4).AndReturn('True')
526 dev_server.ImageServerBase.run_call(argument5).AndReturn('True')
767 dev_server.ImageServerBase.run_call(argument1).AndReturn('Success')
768 dev_server.ImageServerBase.run_call(argument2).AndReturn('True')
784 dev_server.ImageServerBase.run_call(argument1).AndReturn('Success')
785 dev_server.ImageServerBase.run_call(argument2).AndReturn('True')
850 dev_server.ImageServerBase.run_call(argument1).AndReturn('Success')
851 dev_server.ImageServerBase.run_call(argument2).AndReturn('True')
890 argument, readline=True).AndReturn(control_files)
942 argument).AndReturn(json.dumps(control_contents))
995 dev_server.ImageServerBase.run_call(argument).AndReturn(contents)
1041 dev_server.ImageServer.servers().AndReturn([self._HOST])
1042 dev_server.ImageServer.devserver_healthy(self._HOST).AndReturn(True)
1048 dev_server.ImageServerBase.run_call(argument).AndReturn(build_string)
1063 dev_server.ImageServer.servers().MultipleTimes().AndReturn(
1066 dev_server.ImageServer.devserver_healthy(host0_expected).AndReturn(True)
1067 dev_server.ImageServer.devserver_healthy(host1_expected).AndReturn(True)
1076 dev_server.ImageServerBase.run_call(argument1).AndReturn(build_string1)
1077 dev_server.ImageServerBase.run_call(argument2).AndReturn(build_string2)
1097 dev_server._get_image_storage_server().AndReturn(
1116 dev_server.ImageServerBase.run_call(argument1).AndReturn('Success')
1117 dev_server.ImageServerBase.run_call(argument2).AndReturn('True')
1254 dev_server.ImageServerBase.run_call(argument1).AndReturn('Success')
1255 dev_server.ImageServerBase.run_call(argument2).AndReturn('True')
1289 dev_server.ImageServer.servers().AndReturn([restricted_devserver,
1309 argument, timeout=mox.IgnoreArg()).AndReturn(
1313 argument, timeout=mox.IgnoreArg()).AndReturn(
1317 argument, timeout=mox.IgnoreArg()).AndReturn(
1335 dev_server.ImageServerBase.run_call(argument).AndReturn('file_path')
1360 dev_server.CrashServer.servers().AndReturn(crash_servers)
1378 dev_server.ImageServerBase.servers().MultipleTimes().AndReturn(