def test_lazy_fixtures_in_subfixture(testdir):
    testdir.makepyfile('\n        import pytest\n\n        @pytest.fixture\n        def a():\n            return "a"\n\n        @pytest.fixture\n        def b():\n            return "b"\n\n        @pytest.fixture(params=[pytest.lazy_fixture(\'a\'), pytest.lazy_fixture(\'b\')])\n        def c(request):\n            return "c" + request.param\n\n        @pytest.fixture\n        def d(c):\n            return "d" + c\n\n        def test_one(d):\n            assert d in ("dca", "dcb")\n    ')
    reprec = testdir.inline_run('-s', '-v')
    reprec.assertoutcome(passed=2)
def test_lazy_fixtures_in_subfixture(testdir):
    testdir.makepyfile('\n        import pytest\n\n        @pytest.fixture\n        def a():\n            return "a"\n\n        @pytest.fixture\n        def b():\n            return "b"\n\n        @pytest.fixture(params=[pytest.lazy_fixture(\'a\'), pytest.lazy_fixture(\'b\')])\n        def c(request):\n            return "c" + request.param\n\n        @pytest.fixture\n        def d(c):\n            return "d" + c\n\n        def test_one(d):\n            assert d in ("dca", "dcb")\n    ')
    reprec = testdir.inline_run('-s', '-v')
    reprec.assertoutcome(passed=2)