MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_ismount_invalid_paths

Method test_ismount_invalid_paths

Lib/test/test_ntpath.py:1293–1303  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1291 self.assertTrue(ntpath.ismount(b"\\\\localhost\\c$\\"))
1292
1293 def test_ismount_invalid_paths(self):
1294 ismount = ntpath.ismount
1295 self.assertFalse(ismount("c:\\\udfff"))
1296 if sys.platform == 'win32':
1297 self.assertRaises(ValueError, ismount, "c:\\\x00")
1298 self.assertRaises(ValueError, ismount, b"c:\\\x00")
1299 self.assertRaises(UnicodeDecodeError, ismount, b"c:\\\xff")
1300 else:
1301 self.assertFalse(ismount("c:\\\x00"))
1302 self.assertFalse(ismount(b"c:\\\x00"))
1303 self.assertFalse(ismount(b"c:\\\xff"))
1304
1305 def test_isreserved(self):
1306 self.assertFalse(ntpath.isreserved(''))

Callers

nothing calls this directly

Calls 3

assertFalseMethod · 0.80
ismountFunction · 0.50
assertRaisesMethod · 0.45

Tested by

no test coverage detected