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

Method setUp

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

Source from the content-addressed store, hash-verified

2710class TestMove(BaseTest, unittest.TestCase):
2711
2712 def setUp(self):
2713 filename = "foo"
2714 self.src_dir = self.mkdtemp()
2715 self.dst_dir = self.mkdtemp()
2716 self.src_file = os.path.join(self.src_dir, filename)
2717 self.dst_file = os.path.join(self.dst_dir, filename)
2718 create_file(self.src_file, b"spam")
2719
2720 def _check_move_file(self, src, dst, real_dst):
2721 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