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

Method test_as_posix_common

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

Source from the content-addressed store, hash-verified

356 self.assertEqual(bytes(P('a/b')), b'a' + sep + b'b')
357
358 def test_as_posix_common(self):
359 P = self.cls
360 for pathstr in ('a', 'a/b', 'a/b/c', '/', '/a/b', '/a/b/c'):
361 self.assertEqual(P(pathstr).as_posix(), pathstr)
362 # Other tests for as_posix() are in test_equivalences().
363
364 def test_eq_common(self):
365 P = self.cls

Callers

nothing calls this directly

Calls 3

as_posixMethod · 0.80
PClass · 0.70
assertEqualMethod · 0.45

Tested by

no test coverage detected