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

Method test_expanduser

Lib/test/test_posixpath.py:299–301  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

297 self.assertFalse(inspect.isfunction(os.path.normpath))
298
299 def test_expanduser(self):
300 self.assertEqual(posixpath.expanduser("foo"), "foo")
301 self.assertEqual(posixpath.expanduser(b"foo"), b"foo")
302
303 def test_expanduser_home_envvar(self):
304 with os_helper.EnvironmentVarGuard() as env:

Callers

nothing calls this directly

Calls 2

expanduserMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected