Class based tests
Boilerplate
class TestClassName:
def setup_method(self, method):
self.x = 0
# do before each test
def teardown_method(self, method):
del self.x
# things to do after each test
def test_testName(self):
pass
class TestClassName:
def setup_method(self, method):
self.x = 0
# do before each test
def teardown_method(self, method):
del self.x
# things to do after each test
def test_testName(self):
pass