How does setUpClass(), setUp(), tearDownClass(), and tearDown() works?
Closed this issue · 1 comments
thechinkysight commented
i just want to ask that how does these two methods works which let them to run at starting and ending :
@classmethod
def setUpClass(cls):
print('setupClass')
@classmethod
def tearDownClass(cls):
print('teardownClass')
Are they related with the unittest or something ? because when I change the names of the methods they aren't printing what they should. Are they like the normal class methods or something special ? My same question goes for the setUp() and tearDown()
thechinkysight commented
This clear my confusion :https://docs.python.org/3/library/unittest.html#unittest.TestCase