'Test parametrization with non-hashable values with indirect parametrization.'

def test_parametrize_with_non_hashable_values_indirect(self, testdir):

    testdir.makepyfile("\n                                                archival_mapping    =    {\n                                                                '1.0':    {'tag':    '1.0'},\n                                                                '1.2.2a1':    {'tag':    'release-1.2.2a1'},\n                                                }\n\n                                                import    pytest\n\n                                                @pytest.fixture\n                                                def    key(request):\n                                                                return    request.param\n\n                                                @pytest.fixture\n                                                def    value(request):\n                                                                return    request.param\n\n                                                @pytest.mark.parametrize('key    value'.split(),\n                                                                                                                                                    archival_mapping.items(),    indirect=True)\n                                                def    test_archival_to_version(key,    value):\n                                                                assert    key    in    archival_mapping\n                                                                assert    value    ==    archival_mapping[key]\n                                ")
    rec = testdir.inline_run()
    rec.assertoutcome(passed=2)
