from pytest import fixture, mark


@fixture
def class_fixture():
    print("\n  (class_fixture)")


@fixture
def bonus_fixture():
    print("\n    (bonus_fixture)")


@mark.usefixtures("class_fixture")
class TestIntermediateClass(object):
    @fixture(autouse=True)
    def method_fixture(self):
        print("\n(autouse method_fixture)")

    def test1(self):
        print("\n    Running TestIntermediateClass.test1")
        assert True