def test_lazy_fixtures_with_subfixtures(testdir):
    testdir.makepyfile('\n        import pytest\n\n        @pytest.fixture(params=["a", "A"])\n        def a(request):\n            return request.param\n\n        @pytest.fixture(params=["b", "B"])\n        def b(a, request):\n            return request.param + a\n\n        @pytest.fixture\n        def c(a):\n            return "c" + a\n\n        @pytest.fixture(params=[pytest.lazy_fixture(\'a\'), pytest.lazy_fixture(\'b\'), pytest.lazy_fixture(\'c\')])\n        def d(request):\n            return "d" + request.param\n\n        @pytest.fixture(params=[pytest.lazy_fixture(\'a\'), pytest.lazy_fixture(\'d\'), ""])\n        def e(request):\n            return "e" + request.param\n\n        def test_one(d):\n            assert d in ("da", "dA", "dba", "dbA", "dBa", "dBA", "dca", "dcA")\n\n        def test_two(e):\n            assert e in ("ea", "eA", "eda", "edA", "edba", "edbA", "edBa", "edBA", "edca", "edcA", "e")\n    ')
    reprec = testdir.inline_run('-s', '-v')
    reprec.assertoutcome(passed=19)
def test_lazy_fixtures_with_subfixtures(testdir):
    testdir.makepyfile('\n        import pytest\n\n        @pytest.fixture(params=["a", "A"])\n        def a(request):\n            return request.param\n\n        @pytest.fixture(params=["b", "B"])\n        def b(a, request):\n            return request.param + a\n\n        @pytest.fixture\n        def c(a):\n            return "c" + a\n\n        @pytest.fixture(params=[pytest.lazy_fixture(\'a\'), pytest.lazy_fixture(\'b\'), pytest.lazy_fixture(\'c\')])\n        def d(request):\n            return "d" + request.param\n\n        @pytest.fixture(params=[pytest.lazy_fixture(\'a\'), pytest.lazy_fixture(\'d\'), ])\n        def e(request):\n            return "e" + request.param\n\n        def test_one(d):\n            assert d in ("da", "dA", "dba", "dbA", "dBa", "dBA", "dca", "dcA")\n\n        def test_two(e):\n            assert e in ("ea", "eA", "eda", "edA", "edba", "edbA", "edBa", "edBA", "edca", "edcA", "e")\n    ')
    reprec = testdir.inline_run('-s', '-v')
    reprec.assertoutcome(passed=19)