Added an additional VCS._u_rel_path() unittest.
authorW. Trevor King <wking@drexel.edu>
Tue, 29 Dec 2009 15:18:20 +0000 (10:18 -0500)
committerW. Trevor King <wking@drexel.edu>
Tue, 29 Dec 2009 15:18:20 +0000 (10:18 -0500)
Also re-enabled the unitsuite in libbe.storage.vcs.base, which
I'd disabled while testing the VCS unittests.

libbe/storage/vcs/base.py

index 7565caf9bd144a35840dbdfba40b2b758bbaffb7..533ef4c4f661dd5aa8bc9c95380672eface265b5 100644 (file)
@@ -908,6 +908,8 @@ os.listdir(self.get_path("bugs")):
         '.'
         >>> vcs._u_rel_path("/a.b/c/", "/a.b/c/")
         '.'
+        >>> vcs._u_rel_path("./a", ".")
+        'a'
         """
         if root == None:
             if self.repo == None:
@@ -1097,5 +1099,4 @@ if libbe.TESTING == True:
     make_vcs_testcase_subclasses(VCS, sys.modules[__name__])
 
     unitsuite =unittest.TestLoader().loadTestsFromModule(sys.modules[__name__])
-    #suite = unittest.TestSuite([unitsuite, doctest.DocTestSuite()])
-    suite = unittest.TestSuite([doctest.DocTestSuite()])
+    suite = unittest.TestSuite([unitsuite, doctest.DocTestSuite()])