def test_issues12_lf_as_method_of_test_class(testdir):
    testdir.makepyfile("\n        import pytest\n\n        class TestModels:\n            @pytest.fixture\n            def one(self):\n                return 1\n\n            @pytest.mark.parametrize('a', [\n                pytest.lazy_fixture('one')\n            ])\n            def test_lf(self, a):\n                assert a == 1\n    ")
    reprec = testdir.inline_run('-s', '-v')
    reprec.assertoutcome(passed=1)
def test_issues12_lf_as_method_of_test_class(testdir):
    testdir.makepyfile("\n        import pytest\n\n        class TestModels:\n            @pytest.fixture\n            def one(self):\n                return 1\n\n            @pytest.mark.parametrize('a', [\n                pytest.lazy_fixture('one')\n            ])\n            def test_lf(self, a):\n                assert a == 1\n    ")
    reprec = testdir.inline_run('-s', '-v')
    reprec.assertoutcome(passed=1)