tests/_helpers.py
def imeis_md5_hashing_uuid(imei, convert_to_uuid=True):
    """Utility method for hashing IMEIs using MD5 and returning their UUID."""
    md5_hash = hashlib.md5()
    md5_hash.update(imei.encode('utf-8'))
    hashed_imei = str(uuid.UUID(md5_hash.hexdigest())) if convert_to_uuid else md5_hash.hexdigest()
    return hashed_imei
Utility method for hashing IMEIs using MD5 and returning their UUID.
Utility method for hashing IMEIs using MD5 and returning their UUID.
Utility method for hashing IMEIs using MD5 and returning their UUID .
def imeis_md5_hashing_uuid(imei, convert_to_uuid=True):
    md5_hash = hashlib.md5()
    md5_hash.update(imei.encode('utf-8'))
    hashed_imei = str(uuid.UUID(md5_hash.hexdigest())) if convert_to_uuid else md5_hash.hexdigest()
    return hashed_imei
def imeis_md5_hashing_uuid ( imei , convert_to_uuid = True ) : md5_hash = hashlib . md5 ( ) md5_hash . update ( imei . encode ( 'utf-8' ) ) hashed_imei = str ( uuid . UUID ( md5_hash . hexdigest ( ) ) ) if convert_to_uuid else md5_hash . hexdigest ( ) return hashed_imei
Utility method for hashing IMEIs using MD5 and returning their UUID.
Utility method for hashing IMEIs using MD5 and returning their UUID .
"""Utility method for hashing IMEIs using MD5 and returning their UUID."""
imei
convert_to_uuid