print "sha1 of file contents:",  hashlib.sha1(test).hexdigest()



# Read data in parts.
print "Reading in example data in parts:"
md5_inparts = hashlib.md5()
with open("data/example.xml") as f:
    for line in f:
        # Add our first string.
        md5_inparts.update(line)

print "md5 for file read in parts:", md5_inparts.hexdigest()
