def setUp(self): """ Build a new test dir for each run. """ if os.path.lexists(PATH): self.fail("Can't use %s for test repo, something is there." % PATH) else: self.repo = jsongit.init(path='test_jsongit_repo')
def test_create_path_arg(self): repo = jsongit.init('test_create_repo') self.assertTrue(os.path.isdir('test_create_repo')) repo.destroy()
def test_destroy_repo(self): repo = jsongit.init('test_destroy_repo') repo.destroy() self.assertFalse(os.path.isdir('test_destroy_repo'))