Lines Matching refs:splitext
94 splitext = macpath.splitext
95 self.assertEqual(splitext(":foo.ext"), (':foo', '.ext'))
96 self.assertEqual(splitext("foo:foo.ext"), ('foo:foo', '.ext'))
97 self.assertEqual(splitext(".ext"), ('.ext', ''))
98 self.assertEqual(splitext("foo.ext:foo"), ('foo.ext:foo', ''))
99 self.assertEqual(splitext(":foo.ext:"), (':foo.ext:', ''))
100 self.assertEqual(splitext(""), ('', ''))
101 self.assertEqual(splitext("foo.bar.ext"), ('foo.bar', '.ext'))
103 self.assertEqual(splitext(b":foo.ext"), (b':foo', b'.ext'))
104 self.assertEqual(splitext(b"foo:foo.ext"), (b'foo:foo', b'.ext'))
105 self.assertEqual(splitext(b".ext"), (b'.ext', b''))
106 self.assertEqual(splitext(b"foo.ext:foo"), (b'foo.ext:foo', b''))
107 self.assertEqual(splitext(b":foo.ext:"), (b':foo.ext:', b''))
108 self.assertEqual(splitext(b""), (b'', b''))
109 self.assertEqual(splitext(b"foo.bar.ext"), (b'foo.bar', b'.ext'))