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