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

Method _test_home

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

Source from the content-addressed store, hash-verified

1253 self.assertEqual(str(P('..', 'b').absolute()), os.path.join(self.base, '..', 'b'))
1254
1255 def _test_home(self, p):
1256 q = self.cls(os.path.expanduser('~'))
1257 self.assertEqual(p, q)
1258 self.assertEqualNormCase(str(p), str(q))
1259 self.assertIs(type(p), type(q))
1260 self.assertTrue(p.is_absolute())
1261
1262 @unittest.skipIf(
1263 pwd is None, reason="Test requires pwd module to get homedir."

Callers 1

test_homeMethod · 0.95

Calls 8

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

Tested by

no test coverage detected