| 94 | |
| 95 | class TestNtpath(NtpathTestCase): |
| 96 | def test_splitext(self): |
| 97 | tester('ntpath.splitext("foo.ext")', ('foo', '.ext')) |
| 98 | tester('ntpath.splitext("/foo/foo.ext")', ('/foo/foo', '.ext')) |
| 99 | tester('ntpath.splitext(".ext")', ('.ext', '')) |
| 100 | tester('ntpath.splitext("\\foo.ext\\foo")', ('\\foo.ext\\foo', '')) |
| 101 | tester('ntpath.splitext("foo.ext\\")', ('foo.ext\\', '')) |
| 102 | tester('ntpath.splitext("")', ('', '')) |
| 103 | tester('ntpath.splitext("foo.bar.ext")', ('foo.bar', '.ext')) |
| 104 | tester('ntpath.splitext("xx/foo.bar.ext")', ('xx/foo.bar', '.ext')) |
| 105 | tester('ntpath.splitext("xx\\foo.bar.ext")', ('xx\\foo.bar', '.ext')) |
| 106 | tester('ntpath.splitext("c:a/b\\c.d")', ('c:a/b\\c', '.d')) |
| 107 | |
| 108 | def test_splitdrive(self): |
| 109 | tester("ntpath.splitdrive('')", ('', '')) |