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

Method setUpClass

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

Source from the content-addressed store, hash-verified

3176
3177 @classmethod
3178 def setUpClass(cls):
3179 write_test_file(TESTFN, cls.FILESIZE)
3180 with open(TESTFN, 'rb') as f:
3181 cls.FILEDATA = f.read()
3182 assert len(cls.FILEDATA) == cls.FILESIZE
3183
3184 @classmethod
3185 def tearDownClass(cls):

Callers 1

resetMethod · 0.95

Calls 3

write_test_fileFunction · 0.85
openFunction · 0.50
readMethod · 0.45

Tested by

no test coverage detected