diff options
| author | Florent Xicluna <florent.xicluna@gmail.com> | 2010-03-08 12:39:35 (GMT) | 
|---|---|---|
| committer | Florent Xicluna <florent.xicluna@gmail.com> | 2010-03-08 12:39:35 (GMT) | 
| commit | 6f682be82b4ce2c64590fdc1255bd0b82d33b0f0 (patch) | |
| tree | c9acb7a429f9df53130d4b1c876c2c24ecf1cfec /Lib/test/test_genericpath.py | |
| parent | fed15766f960b06bcb2bcedf6eca949f62106468 (diff) | |
| download | cpython-6f682be82b4ce2c64590fdc1255bd0b82d33b0f0.zip cpython-6f682be82b4ce2c64590fdc1255bd0b82d33b0f0.tar.gz cpython-6f682be82b4ce2c64590fdc1255bd0b82d33b0f0.tar.bz2  | |
Move some tests from test_macpath to test_genericpath.CommonTest
Diffstat (limited to 'Lib/test/test_genericpath.py')
| -rw-r--r-- | Lib/test/test_genericpath.py | 12 | 
1 files changed, 12 insertions, 0 deletions
diff --git a/Lib/test/test_genericpath.py b/Lib/test/test_genericpath.py index fc0c33d..af501cf 100644 --- a/Lib/test/test_genericpath.py +++ b/Lib/test/test_genericpath.py @@ -47,6 +47,18 @@ class GenericTest(unittest.TestCase):              commonprefix(["/home/swen/spam", "/home/swen/spam"]),              "/home/swen/spam"          ) +        self.assertEqual( +            commonprefix(["home:swenson:spam", "home:swen:spam"]), +            "home:swen" +        ) +        self.assertEqual( +            commonprefix([":home:swen:spam", ":home:swen:eggs"]), +            ":home:swen:" +        ) +        self.assertEqual( +            commonprefix([":home:swen:spam", ":home:swen:spam"]), +            ":home:swen:spam" +        )          testlist = ['', 'abc', 'Xbcd', 'Xb', 'XY', 'abcd',                      'aXc', 'abd', 'ab', 'aX', 'abcX']  | 
