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

Method setUp

Lib/test/test_shutil.py:2738–2744  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2736class TestMove(BaseTest, unittest.TestCase):
2737
2738 def setUp(self):
2739 filename = "foo"
2740 self.src_dir = self.mkdtemp()
2741 self.dst_dir = self.mkdtemp()
2742 self.src_file = os.path.join(self.src_dir, filename)
2743 self.dst_file = os.path.join(self.dst_dir, filename)
2744 create_file(self.src_file, b"spam")
2745
2746 def _check_move_file(self, src, dst, real_dst):
2747 with open(src, "rb") as f:

Callers 2

setUpMethod · 0.45
resetMethod · 0.45

Calls 3

mkdtempMethod · 0.80
create_fileFunction · 0.70
joinMethod · 0.45

Tested by

no test coverage detected