def METHOD_NAME(key_type, value_type, key_value, value_value, key_serialized, value_serialized):
    prop = properties.Mapping(key_type, value_type, ser_as_list_of_pairs = True)
    value = {key_value: value_value}
    serialized = [(key_serialized, value_serialized),]
    assert prop.deserialize(serialized) == value
    unittest.TestCase().assertCountEqual(prop.serialize(value), serialized)