freezer/tests
Domhnall Walsh 98c93e68a5 Fix checksum generation so that it handles binary data
At the moment, if freezer attempts to perform a backup with
the consistency check option enabled, it will fail if the
files being backed up contain anything other than plain
ASCII (or at least some flavour of same, ISO-8859-x
etc.). This is because the hashlib module fails as it
expects a string to digest rather than a binary blob.

This should fix matters by escaping everything that might
cause an issue and works for Python 2 and 3. Because it
escapes strings in a different way to before, the
checksums it computes may be different to previously
in some cases, but at least now it should always produce
one.

Change-Id: Idf62dc9e398c396c9de19cbff5622e79d4c7a198
Closes-Bug: #1595732
2016-07-13 10:06:57 +01:00
..
integration Remove auto_snap 2016-05-05 12:43:27 +01:00
unit Fix checksum generation so that it handles binary data 2016-07-13 10:06:57 +01:00
__init__.py Added unittest for utils.py 2014-12-06 17:36:53 +00:00