'Test parametrization when parameter overrides existing parametrized fixture with same name.'

def test_parametrize_overrides_parametrized_fixture(self, testdir):

    testdir.makepyfile("\n                                                import    pytest\n\n                                                @pytest.fixture(params=[1,    2])\n                                                def    value(request):\n                                                                return    request.param\n\n                                                @pytest.mark.parametrize('value',\n                                                                                                                                                    ['overridden'])\n                                                def    test_overridden_via_param(value):\n                                                                assert    value    ==    'overridden'\n                                ")
    rec = testdir.inline_run()
    rec.assertoutcome(passed=1)
