Lines Matching refs:mox
11 import mox
37 class SuiteTest(mox.MoxTestBase):
56 self.afe = self.mox.CreateMock(frontend.AFE)
57 self.tko = self.mox.CreateMock(frontend.TKO)
61 self.getter = self.mox.CreateMock(control_file_getter.ControlFileGetter)
114 self.mox.StubOutWithMock(control_data, 'parse_control_string')
128 self.mox.ReplayAll()
154 self.mox.ReplayAll()
173 self.mox.ReplayAll()
193 self.mox.ReplayAll()
213 self.mox.ReplayAll()
234 self.mox.StubOutWithMock(Suite, 'find_and_parse_tests')
236 mox.IgnoreArg(),
237 mox.IgnoreArg(),
238 mox.IgnoreArg(),
259 self.mox.StubOutWithMock(suite, '_remember_provided_job_id')
280 name=mox.And(mox.StrContains(build),
281 mox.StrContains(test.name)),
282 control_type=mox.IgnoreArg(),
318 self.mox.ReplayAll()
323 self.mox.ResetAll()
324 recorder = self.mox.CreateMock(base_job.base_job)
326 self.mox.ReplayAll()
335 recorder = self.mox.CreateMock(base_job.base_job)
338 self.mox.ReplayAll()
348 recorder = self.mox.CreateMock(base_job.base_job)
352 self.mox.ReplayAll()
363 recorder = self.mox.CreateMock(base_job.base_job)
365 self.mox.ReplayAll()
375 recorder = self.mox.CreateMock(base_job.base_job)
377 self.mox.ReplayAll()
400 recorder = self.mox.CreateMock(base_job.base_job)
402 self.mox.ReplayAll()
418 recorder = self.mox.CreateMock(base_job.base_job)
422 self.mox.ReplayAll()
435 self.mox.ReplayAll()
441 self.mox.ResetAll()
463 self.recorder = self.mox.CreateMock(base_job.base_job)
464 self.recorder.record_entry = self.mox.CreateMock(
468 self.suite._tko.run = self.mox.CreateMock(frontend.RpcClient.run)
520 self.mox.StubOutWithMock(suite, 'schedule')
524 self.mox.StubOutWithMock(job_status, 'wait_for_results')
534 recorder = self.mox.CreateMock(base_job.base_job)
539 self.mox.ReplayAll()
549 recorder = self.mox.CreateMock(base_job.base_job)
554 self.mox.StubOutWithMock(suite, 'schedule')
556 self.mox.StubOutWithMock(job_status, 'wait_for_results')
557 job_status.wait_for_results(mox.IgnoreArg(),
558 mox.IgnoreArg(),
559 mox.IgnoreArg()).AndRaise(
561 self.mox.ReplayAll()
571 recorder = self.mox.CreateMock(base_job.base_job)
580 self.mox.StubOutWithMock(suite, '_create_job')
581 suite._create_job(mox.IgnoreArg(), retry_for=mox.IgnoreArg()).AndRaise(
583 self.mox.ReplayAll()
592 self.mox.ReplayAll()
649 self.mox.StubOutWithMock(reporting, 'TestBug')
651 mox.IgnoreArg(), mox.IgnoreArg(),
652 mox.Func(check_result))
654 self.mox.StubOutClassWithMocks(phapi_lib, 'ProjectHostingApiClient')
655 mock_host = phapi_lib.ProjectHostingApiClient(mox.IgnoreArg(),
656 mox.IgnoreArg())
657 self.mox.StubOutWithMock(reporting.Reporter, 'report')
658 reporting.Reporter.report(mox.IgnoreArg(),
659 mox.IgnoreArg()).AndReturn((0, 0))
661 self.mox.StubOutWithMock(utils, 'write_keyval')
662 utils.write_keyval(mox.IgnoreArg(), mox.IgnoreArg())
677 self.mox.ReplayAll()
693 self.mox.StubOutWithMock(reporting.Reporter, '_check_tracker')
694 self.mox.StubOutClassWithMocks(phapi_lib, 'ProjectHostingApiClient')
695 mock_host = phapi_lib.ProjectHostingApiClient(mox.IgnoreArg(),
696 mox.IgnoreArg())
699 self.mox.ReplayAll()
718 self.mox.StubOutWithMock(self.suite, '_create_job')
722 self.mox.ReplayAll()
756 self.mox.ReplayAll()
782 self.mox.StubOutWithMock(self.suite, '_create_job')
787 self.mox.StubOutWithMock(self.suite, 'should_report')
788 self.suite.should_report(mox.IgnoreArg()).AndReturn(False)
790 self.mox.ReplayAll()