Test should expect byte objects, not strings Since the response is in binary, the expected values in the repsonse should also be in binary (especially since certain hash can cause EncodeError). Also, since hashes are stored in set (an unordered collection) in the Chunk class, the hashed chunk can have different order for the hashed values in the Chunk class. So I used assertIn instead of assertEqual in some of the test assertions.
Test should expect byte objects, not strings
Since the response is in binary, the expected values in the repsonse should also be in binary (especially since certain hash can cause EncodeError). Also, since hashes are stored in set (an unordered collection) in the Chunk class, the hashed chunk can have different order for the hashed values in the Chunk class. So I used assertIn instead of assertEqual in some of the test assertions.

mozilla-services/shavar,mozilla-services/shavar