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

Method setUp

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

Source from the content-addressed store, hash-verified

592class PathLikeTests(unittest.TestCase):
593
594 def setUp(self):
595 self.file_name = os_helper.TESTFN
596 self.file_path = FakePath(os_helper.TESTFN)
597 self.addCleanup(os_helper.unlink, self.file_name)
598 create_file(self.file_name, b"test_genericpath.PathLikeTests")
599
600 def assertPathEqual(self, func):
601 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