Make sure we have the expected md5
exp = "ab07acbb1e496801937adfa772424bf7"
fd = StringIO("foo bar baz")
obs = safe_md5(fd)
self.assertEqual(obs.hexdigest(), exp)
fd.close()
After Change
Make sure we have the expected md5
exp = "ab07acbb1e496801937adfa772424bf7"
fd = BytesIO(b"foo bar baz")
obs = safe_md5(fd)
self.assertEqual(obs.hexdigest(), exp)
fd.close()