import hashlib


def md5_file(path):  # pragma: no cover
    """
    Get md5 check sum of a file.
    """
    m = hashlib.md5()
    with open(path, "rb") as f:
        b = f.read()
        m.update(b)
    return m.hexdigest()