def test_lazy_fixture_three_times_nested(testdir):
    testdir.makepyfile("\n        import pytest\n        @pytest.fixture(params=[\n            1, 2, pytest.lazy_fixture('three')])\n        def one(request):\n            return str(request.param)\n        @pytest.fixture\n        def two():\n            return 4\n        @pytest.fixture\n        def three():\n            return 3\n        @pytest.fixture(params=[\n            pytest.lazy_fixture('one'),\n            pytest.lazy_fixture('two')\n        ])\n        def some(request):\n            return request.param\n        def test_func(some):\n            assert some in {'1', '2', '3', 4}\n    ")
    reprec = testdir.inline_run('-s')
    reprec.assertoutcome(passed=4)
def test_lazy_fixture_three_times_nested(testdir):
    testdir.makepyfile("\n        import pytest\n        @pytest.fixture(params=[\n            1, 2, pytest.lazy_fixture('three')])\n        def one(request):\n            return str(request.param)\n        @pytest.fixture\n        def two():\n            return 4\n        @pytest.fixture\n        def three():\n            return 3\n        @pytest.fixture(params=[\n            pytest.lazy_fixture('one'),\n            pytest.lazy_fixture('two')\n        ])\n        def some(request):\n            return request.param\n        def test_func(some):\n            assert some in {'1', '2', '3', 4}\n    ")
    reprec = testdir.inline_run('-s')
    reprec.assertoutcome(passed=4)