From: W. Trevor King Date: Tue, 29 Dec 2009 15:18:20 +0000 (-0500) Subject: Added an additional VCS._u_rel_path() unittest. X-Git-Tag: 1.0.0~59^2~52^2~21 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b2d5da700c83f693191573c300aee1ffb80a8e98;p=be.git Added an additional VCS._u_rel_path() unittest. Also re-enabled the unitsuite in libbe.storage.vcs.base, which I'd disabled while testing the VCS unittests. --- diff --git a/libbe/storage/vcs/base.py b/libbe/storage/vcs/base.py index 7565caf..533ef4c 100644 --- a/libbe/storage/vcs/base.py +++ b/libbe/storage/vcs/base.py @@ -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()])