examples/pytest/test_class.py
class TestClass():
    def setup_method(self):
        print("setup_method called for every method")

    def setup_class(self):
        print("setup_class called once for the class")

    def teardown_method(self):
        print("teardown_method called for every method")

    def teardown_class(self):
        print("teardown_class called once for the class")

    def test_one(self):
        print("one")
        assert True

    def test_two(self):
        print("two")
        assert True