aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/storage
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2009-12-29 10:18:20 -0500
committerW. Trevor King <wking@drexel.edu>2009-12-29 10:18:20 -0500
commitb2d5da700c83f693191573c300aee1ffb80a8e98 (patch)
treeb8cd6822f19fd66d7c40ed17830239188c5ef765 /libbe/storage
parent6dafff3ad4a88d8af7b1cd4837b90179ac34a1e3 (diff)
downloadbugseverywhere-b2d5da700c83f693191573c300aee1ffb80a8e98.tar.gz
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.
Diffstat (limited to 'libbe/storage')
-rw-r--r--libbe/storage/vcs/base.py5
1 files changed, 3 insertions, 2 deletions
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()])