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

Method _test_cwd

Lib/test/test_pathlib/test_pathlib.py:1213–1218  ·  view source on GitHub ↗
(self, p)

Source from the content-addressed store, hash-verified

1211 self.assertRaises(pathlib.UnsupportedOperation, self.cls)
1212
1213 def _test_cwd(self, p):
1214 q = self.cls(os.getcwd())
1215 self.assertEqual(p, q)
1216 self.assertEqualNormCase(str(p), str(q))
1217 self.assertIs(type(p), type(q))
1218 self.assertTrue(p.is_absolute())
1219
1220 def test_cwd(self):
1221 p = self.cls.cwd()

Callers 1

test_cwdMethod · 0.95

Calls 7

assertEqualNormCaseMethod · 0.95
strFunction · 0.85
assertTrueMethod · 0.80
is_absoluteMethod · 0.80
clsMethod · 0.45
assertEqualMethod · 0.45
assertIsMethod · 0.45

Tested by

no test coverage detected