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

Method test_as_uri_common

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

Source from the content-addressed store, hash-verified

429 return path.as_uri()
430
431 def test_as_uri_common(self):
432 P = self.cls
433 with self.assertRaises(ValueError):
434 self.make_uri(P('a'))
435 with self.assertRaises(ValueError):
436 self.make_uri(P())
437
438 def test_repr_roundtrips(self):
439 for pathstr in ('a', 'a/b', 'a/b/c', '/', '/a/b', '/a/b/c'):

Callers

nothing calls this directly

Calls 3

make_uriMethod · 0.95
PClass · 0.70
assertRaisesMethod · 0.45

Tested by

no test coverage detected