MCPcopy Index your code
hub / github.com/python/cpython / test_as_uri_posix

Method test_as_uri_posix

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

Source from the content-addressed store, hash-verified

654
655 @needs_posix
656 def test_as_uri_posix(self):
657 P = self.cls
658 self.assertEqual(self.make_uri(P('/')), 'file:///')
659 self.assertEqual(self.make_uri(P('/a/b.c')), 'file:///a/b.c')
660 self.assertEqual(self.make_uri(P('/a/b%#c')), 'file:///a/b%25%23c')
661
662 @needs_posix
663 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