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

def test_parametrize_overrides_fixture(self, testdir):

    testdir.makepyfile("\n                                                import    pytest\n\n                                                @pytest.fixture\n                                                def    value():\n                                                                return    'value'\n\n                                                @pytest.mark.parametrize('value',\n                                                                                                                                                    ['overridden'])\n                                                def    test_overridden_via_param(value):\n                                                                assert    value    ==    'overridden'\n\n                                                @pytest.mark.parametrize('somevalue',    ['overridden'])\n                                                def    test_not_overridden(value,    somevalue):\n                                                                assert    value    ==    'value'\n                                                                assert    somevalue    ==    'overridden'\n\n                                                @pytest.mark.parametrize('other,value',    [('foo',    'overridden')])\n                                                def    test_overridden_via_multiparam(other,    value):\n                                                                assert    other    ==    'foo'\n                                                                assert    value    ==    'overridden'\n                                ")
    rec = testdir.inline_run()
    rec.assertoutcome(passed=3)
