def test_lazy_fixture_nested_fixtures(testdir):
    testdir.makepyfile('\n        import pytest\n\n        @pytest.fixture\n        def one(request):\n            return "SOME_VALUE"\n\n        @pytest.fixture\n        def two(request):\n            return "SOME_VALUE2"\n\n        @pytest.fixture(params=[\n            pytest.lazy_fixture("one"),\n            pytest.lazy_fixture("two"),\n        ])\n        def some_fixture1(request):\n            return request.param\n\n        @pytest.fixture\n        def some_fixture2(some_fixture1):\n            return "NEW_" + some_fixture1\n\n        def test_func(some_fixture2):\n            assert ((some_fixture2 == "NEW_SOME_VALUE") or (some_fixture2 == "NEW_SOME_VALUE2"))\n    ')
    reprec = testdir.inline_run('-s')
    reprec.assertoutcome(passed=2)
def test_lazy_fixture_nested_fixtures(testdir):
    testdir.makepyfile('\n        import pytest\n\n        @pytest.fixture\n        def one(request):\n            return "SOME_VALUE"\n\n        @pytest.fixture\n        def two(request):\n            return "SOME_VALUE2"\n\n        @pytest.fixture(params=[\n            pytest.lazy_fixture("one"),\n            pytest.lazy_fixture("two"),\n        ])\n        def some_fixture1(request):\n            return request.param\n\n        @pytest.fixture\n        def some_fixture2(some_fixture1):\n            return "NEW_" + some_fixture1\n\n        def test_func(some_fixture2):\n            assert ((some_fixture2 == "NEW_SOME_VALUE") or (some_fixture2 == "NEW_SOME_VALUE2"))\n    ')
    reprec = testdir.inline_run('-s')
    reprec.assertoutcome(passed=2)