From 8b0ac297f269b6c43ef3a1c04436f959c9162b99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Fri, 1 Jul 2005 13:09:42 +0000 Subject: [PATCH] check if we can trick util.removepathprefix. --- tests/utiltests.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/utiltests.py b/tests/utiltests.py index 479c91da..82ae68b4 100644 --- a/tests/utiltests.py +++ b/tests/utiltests.py @@ -18,4 +18,8 @@ class UtilTestCase(unittest.TestCase): a = removepathprefix('usr/local', 'usr/local/lib') self.assertEqual(a, 'lib') + a = removepathprefix('usr/local/', 'usr/local/lib') + self.assertEqual(a, 'lib') + + suite = unittest.makeSuite(UtilTestCase)