(self)
| 279 | TEST_CONFIG["DEFAULT_CWD"] = self.MakeEmptyTempDirectory() |
| 280 | |
| 281 | def tearDown(self): |
| 282 | if os.path.exists(TEST_CONFIG["PERSISTFILE_BASENAME"]): |
| 283 | shutil.rmtree(TEST_CONFIG["PERSISTFILE_BASENAME"]) |
| 284 | |
| 285 | # Clean up temps. Doesn't work automatically. |
| 286 | for name in self._tmp_files: |
| 287 | if os.path.isfile(name): |
| 288 | os.remove(name) |
| 289 | if os.path.isdir(name): |
| 290 | shutil.rmtree(name) |
| 291 | |
| 292 | self._mock.AssertFinished() |
| 293 | |
| 294 | def testGitMock(self): |
| 295 | self.Expect([Cmd("git --version", "git version 1.2.3"), |
nothing calls this directly
no test coverage detected