Lines Matching refs:mox
8 import mox
17 class StartsWithList(mox.Comparator):
34 class ContainsSublist(mox.Comparator):
82 self.mox = mox.Mox()
105 mock_process_1 = self.mox.CreateMock(subprocess.Popen)
106 mock_process_2 = self.mox.CreateMock(subprocess.Popen)
107 fake_stdout = self.mox.CreateMock(file)
114 self.mox.StubOutWithMock(os, 'makedirs')
115 self.mox.StubOutWithMock(utils, 'write_keyval')
116 self.mox.StubOutWithMock(subprocess, 'Popen')
123 subprocess.Popen(mox.And(StartsWithList(arglist_1),
136 subprocess.Popen(mox.And(StartsWithList(arglist_2),
145 self.mox.ReplayAll()
157 self.mox.UnsetStubs()
158 self.mox.VerifyAll()
159 self.mox.ResetAll()
189 self.mox = mox.Mox()
191 self.mox.StubOutWithMock(test_runner_utils, 'fetch_local_suite')
192 test_runner_utils.fetch_local_suite(autotest_path, mox.IgnoreArg(),
198 self.mox.StubOutWithMock(test_runner_utils, 'run_job')
199 self.mox.StubOutWithMock(test_runner_utils, 'run_provisioning_job')
200 self.mox.StubOutWithMock(test_runner_utils, '_auto_detect_labels')
213 mox.ContainsAttributeValue('control_file', control_file),
217 self.mox.ReplayAll()
223 self.mox.UnsetStubs()
224 self.mox.VerifyAll()