def test_issues11_autouse_fixture_in_test_class(testdir):
    testdir.makepyfile('\n        import pytest\n\n        class TestModels(object):\n            @pytest.fixture(autouse=True)\n            def setup(self):\n                self.var = 15\n\n            def test_model_a(self):\n                assert self.var == 15\n\n            def test_model_b(self):\n                assert self.var == 15\n\n    ')
    reprec = testdir.inline_run('-s', '-v')
    reprec.assertoutcome(passed=2)
def test_issues11_autouse_fixture_in_test_class(testdir):
    testdir.makepyfile('\n        import pytest\n\n        class TestModels(object):\n            @pytest.fixture(autouse=True)\n            def setup(self):\n                self.var = 15\n\n            def test_model_a(self):\n                assert self.var == 15\n\n            def test_model_b(self):\n                assert self.var == 15\n\n    ')
    reprec = testdir.inline_run('-s', '-v')
    reprec.assertoutcome(passed=2)