def test_load(self): """Verify a working copy can be created.""" working = vcs.load(ROOT) self.assertIsInstance(working, vcs.git.WorkingCopy) self.assertEqual(ROOT, working.path)
def test_load_unknown(self): """Verify a working copy can be created.""" working = vcs.load(DIR) self.assertIsInstance(working, vcs.mockvcs.WorkingCopy) self.assertEqual(DIR, working.path)
def vcs(self): """Get the working copy.""" if self._vcs is None: self._vcs = vcs.load(self.root) return self._vcs