Lines Matching refs:mox

6 import mox
14 class TestAutoUpdater(mox.MoxTestBase):
40 update_url, host=self.mox.CreateMockAnything())
42 self.mox.UnsetStubs()
43 self.mox.StubOutWithMock(updater.host, 'get_release_version')
46 self.mox.ReplayAll()
51 self.mox.UnsetStubs()
52 self.mox.StubOutWithMock(updater.host, 'get_release_version')
55 self.mox.ReplayAll()
60 self.mox.UnsetStubs()
61 self.mox.StubOutWithMock(updater.host, 'get_release_version')
63 self.mox.ReplayAll()
68 self.mox.UnsetStubs()
69 self.mox.StubOutWithMock(updater.host, 'get_release_version')
72 self.mox.ReplayAll()
91 update_url, host=self.mox.CreateMockAnything())
93 self.mox.UnsetStubs()
94 self.mox.StubOutWithMock(updater.host, 'get_release_version')
97 self.mox.ReplayAll()
102 self.mox.UnsetStubs()
103 self.mox.StubOutWithMock(updater.host, 'get_release_version')
106 self.mox.ReplayAll()
111 self.mox.UnsetStubs()
112 self.mox.StubOutWithMock(updater.host, 'get_release_version')
114 self.mox.ReplayAll()
119 self.mox.UnsetStubs()
120 self.mox.StubOutWithMock(updater.host, 'get_release_version')
123 self.mox.ReplayAll()
142 update_url, host=self.mox.CreateMockAnything())
144 self.mox.UnsetStubs()
145 self.mox.StubOutWithMock(updater.host, 'get_release_version')
148 self.mox.ReplayAll()
153 self.mox.UnsetStubs()
154 self.mox.StubOutWithMock(updater.host, 'get_release_version')
157 self.mox.ReplayAll()
162 self.mox.UnsetStubs()
163 self.mox.StubOutWithMock(updater.host, 'get_release_version')
165 self.mox.ReplayAll()
170 self.mox.UnsetStubs()
171 self.mox.StubOutWithMock(updater.host, 'get_release_version')
174 self.mox.ReplayAll()
193 update_url, host=self.mox.CreateMockAnything())
195 self.mox.UnsetStubs()
196 self.mox.StubOutWithMock(updater.host, 'get_release_version')
199 self.mox.ReplayAll()
204 self.mox.UnsetStubs()
205 self.mox.StubOutWithMock(updater.host, 'get_release_version')
208 self.mox.ReplayAll()
213 self.mox.UnsetStubs()
214 self.mox.StubOutWithMock(updater.host, 'get_release_version')
216 self.mox.ReplayAll()
221 self.mox.UnsetStubs()
222 self.mox.StubOutWithMock(updater.host, 'get_release_version')
225 self.mox.ReplayAll()
244 update_url, host=self.mox.CreateMockAnything())
246 self.mox.UnsetStubs()
247 self.mox.StubOutWithMock(updater.host, 'get_release_version')
250 self.mox.ReplayAll()
255 self.mox.UnsetStubs()
256 self.mox.StubOutWithMock(updater.host, 'get_release_version')
259 self.mox.ReplayAll()
264 self.mox.UnsetStubs()
265 self.mox.StubOutWithMock(updater.host, 'get_release_version')
267 self.mox.ReplayAll()
272 self.mox.UnsetStubs()
273 self.mox.StubOutWithMock(updater.host, 'get_release_version')
276 self.mox.ReplayAll()
295 update_url, host=self.mox.CreateMockAnything())
297 self.mox.UnsetStubs()
298 self.mox.StubOutWithMock(updater.host, 'get_release_version')
301 self.mox.ReplayAll()
306 self.mox.UnsetStubs()
307 self.mox.StubOutWithMock(updater.host, 'get_release_version')
310 self.mox.ReplayAll()
315 self.mox.UnsetStubs()
316 self.mox.StubOutWithMock(updater.host, 'get_release_version')
318 self.mox.ReplayAll()
323 self.mox.UnsetStubs()
324 self.mox.StubOutWithMock(updater.host, 'get_release_version')
327 self.mox.ReplayAll()
346 update_url, host=self.mox.CreateMockAnything())
348 self.mox.UnsetStubs()
349 self.mox.StubOutWithMock(updater.host, 'get_release_version')
352 self.mox.ReplayAll()
357 self.mox.UnsetStubs()
358 self.mox.StubOutWithMock(updater.host, 'get_release_version')
361 self.mox.ReplayAll()
366 self.mox.UnsetStubs()
367 self.mox.StubOutWithMock(updater.host, 'get_release_version')
369 self.mox.ReplayAll()
374 self.mox.UnsetStubs()
375 self.mox.StubOutWithMock(updater.host, 'get_release_version')
378 self.mox.ReplayAll()
387 host = self.mox.CreateMockAnything()
388 self.mox.StubOutWithMock(host, 'run')
408 cmd_result_1 = self.mox.CreateMockAnything()
415 cmd_result_255 = self.mox.CreateMockAnything()
422 self.mox.ReplayAll()
437 self.mox.VerifyAll()
443 self.mox.StubOutWithMock(autoupdater.ChromiumOSUpdater, '_run')
444 self.mox.StubOutWithMock(autoupdater.ChromiumOSUpdater,
455 mox.And(
456 mox.StrContains(
459 mox.StrContains(static_update_url),
460 mox.Not(mox.StrContains('--stateful_change=clean'))),
461 timeout=mox.IgnoreArg())
463 self.mox.ReplayAll()
466 self.mox.VerifyAll()
469 self.mox.ResetAll()
473 mox.And(
474 mox.StrContains(
477 mox.StrContains(static_update_url),
478 mox.StrContains('--stateful_change=clean')),
479 timeout=mox.IgnoreArg())
480 self.mox.ReplayAll()
483 self.mox.VerifyAll()
488 self.mox.StubOutWithMock(autoupdater.ChromiumOSUpdater, '_run')
489 self.mox.StubOutWithMock(autoupdater.ChromiumOSUpdater,
491 host = self.mox.CreateMockAnything()
506 self.mox.ReplayAll()
508 self.mox.VerifyAll()
510 self.mox.ResetAll()
511 cmd_result_1 = self.mox.CreateMockAnything()
518 self.mox.ReplayAll()
521 self.mox.VerifyAll()
523 self.mox.ResetAll()
529 self.mox.ReplayAll()
531 self.mox.VerifyAll()