예제 #1
0
 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)
예제 #2
0
 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)
예제 #3
0
 def vcs(self):
     """Get the working copy."""
     if self._vcs is None:
         self._vcs = vcs.load(self.root)
     return self._vcs