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

Method setUpClass

Lib/test/test_shutil.py:3152–3156  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

3150
3151 @classmethod
3152 def setUpClass(cls):
3153 write_test_file(TESTFN, cls.FILESIZE)
3154 with open(TESTFN, 'rb') as f:
3155 cls.FILEDATA = f.read()
3156 assert len(cls.FILEDATA) == cls.FILESIZE
3157
3158 @classmethod
3159 def tearDownClass(cls):

Callers 1

resetMethod · 0.95

Calls 4

write_test_fileFunction · 0.85
lenFunction · 0.85
openFunction · 0.50
readMethod · 0.45

Tested by

no test coverage detected