(self)
| 413 | self.assertEquals("0", self._state["new_patch"]) |
| 414 | |
| 415 | def testBootstrapper(self): |
| 416 | work_dir = self.MakeEmptyTempDirectory() |
| 417 | class FakeScript(ScriptsBase): |
| 418 | def _Steps(self): |
| 419 | return [] |
| 420 | |
| 421 | # Use the test configuration without the fake testing default work dir. |
| 422 | fake_config = dict(TEST_CONFIG) |
| 423 | del(fake_config["DEFAULT_CWD"]) |
| 424 | |
| 425 | self.Expect([ |
| 426 | Cmd("git cl creds-check", "", cwd=work_dir), |
| 427 | Cmd("git clone https://chromium.googlesource.com/v8/v8", "", |
| 428 | cwd=work_dir), |
| 429 | ]) |
| 430 | FakeScript(fake_config, self).Run(["--work-dir", work_dir]) |
| 431 | |
| 432 | def testCreateRelease(self): |
| 433 | TextToFile("", os.path.join(TEST_CONFIG["DEFAULT_CWD"], ".git")) |
nothing calls this directly
no test coverage detected