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

Method setUp

Lib/test/test_genericpath.py:573–577  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

571class PathLikeTests(unittest.TestCase):
572
573 def setUp(self):
574 self.file_name = os_helper.TESTFN
575 self.file_path = FakePath(os_helper.TESTFN)
576 self.addCleanup(os_helper.unlink, self.file_name)
577 create_file(self.file_name, b"test_genericpath.PathLikeTests")
578
579 def assertPathEqual(self, func):
580 self.assertEqual(func(self.file_path), func(self.file_name))

Callers

nothing calls this directly

Calls 3

FakePathClass · 0.90
addCleanupMethod · 0.80
create_fileFunction · 0.70

Tested by

no test coverage detected