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

Method test_as_uri_posix

Lib/test/test_pathlib/test_pathlib.py:665–669  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

663
664 @needs_posix
665 def test_as_uri_posix(self):
666 P = self.cls
667 self.assertEqual(self.make_uri(P('/')), 'file:///')
668 self.assertEqual(self.make_uri(P('/a/b.c')), 'file:///a/b.c')
669 self.assertEqual(self.make_uri(P('/a/b%#c')), 'file:///a/b%25%23c')
670
671 @needs_posix
672 def test_as_uri_non_ascii(self):

Callers

nothing calls this directly

Calls 3

make_uriMethod · 0.95
PClass · 0.70
assertEqualMethod · 0.45

Tested by

no test coverage detected