def METHOD_NAME(self):
    list_original = ({'proto': 'eigrp', 'id': 1}, {'proto': 'ospf', 'id': 2}, {'proto': 'eigrp', 'id': 3})
    expected = {'eigrp': {'proto': 'eigrp', 'id': 3}, 'ospf': {'proto': 'ospf', 'id': 2}}
    assert ms.rekey_on_member(list_original, 'proto', duplicates='overwrite') == expected