@pytest.mark.parametrize('autouse', [False, True])
def test_issues23(testdir, autouse):
    testdir.makepyfile("\n        import pytest\n\n        @pytest.fixture(params=[0, 1], autouse={})\n        def zero(request):\n            return request.param\n\n        @pytest.fixture(params=[1])\n        def one(request, zero):\n            return zero * request.param\n\n        @pytest.fixture(params=[\n            pytest.lazy_fixture('one'),\n        ])\n        def some(request):\n            return request.param\n\n        def test_func(some):\n            assert some in [0, 1]\n\n    ".format(autouse))
    reprec = testdir.inline_run('-s', '-v')
    reprec.assertoutcome(passed=2)
@pytest.mark.parametrize('autouse', [False, True])
def test_issues23(testdir, autouse):
    testdir.makepyfile("\n        import pytest\n\n        @pytest.fixture(params=[0, 1], autouse={})\n        def zero(request):\n            return request.param\n\n        @pytest.fixture(params=[1])\n        def one(request, zero):\n            return zero * request.param\n\n        @pytest.fixture(params=[\n            pytest.lazy_fixture('one'),\n        ])\n        def some(request):\n            return request.param\n\n        def test_func(some):\n            assert some in [0, 1]\n\n    ".format(autouse))
    reprec = testdir.inline_run('-s', '-v')
    reprec.assertoutcome(passed=2)