def dict_key_for_value(_dict, value):
    return _dict.keys()[_dict.values().index(value)]
Test that a Digest attribute can be created.
dataset/ETHPy150Open kobotoolbox/kobocat/onadata/libs/serializers/attachment_serializer.py/dict_key_for_value--crossover with--dataset/ETHPy150Open OpenKMIP/PyKMIP/kmip/tests/unit/core/factories/test_attribute_values.py/TestAttributeValueFactory.test_create_digest