Creates temporary dir and cds to it.
(self, prefix_for_tmp_repo)
| 32 | class TestBase(unittest.TestCase): |
| 33 | |
| 34 | def setUp(self, prefix_for_tmp_repo): |
| 35 | """Creates temporary dir and cds to it.""" |
| 36 | logging.basicConfig(stream=sys.stdout, level=logging.INFO) |
| 37 | self.path = tempfile.mkdtemp(prefix=prefix_for_tmp_repo) |
| 38 | logging.debug('Created temporary directory {0}'.format(self.path)) |
| 39 | os.chdir(self.path) |
| 40 | |
| 41 | def tearDown(self): |
| 42 | """Removes the temporary dir.""" |
nothing calls this directly
no outgoing calls
no test coverage detected