diff --git a/src/calibre/srv/tests/http.py b/src/calibre/srv/tests/http.py index 89220d095f..f34e6b7176 100644 --- a/src/calibre/srv/tests/http.py +++ b/src/calibre/srv/tests/http.py @@ -320,7 +320,10 @@ class TestHTTP(BaseTest): conn = server.connect() conn.request('GET', '/test') r = conn.getresponse() - self.ae(data, r.read()) + rdata = r.read() + self.ae(len(data), len(rdata)) + self.ae(hashlib.sha1(data).hexdigest(), hashlib.sha1(rdata).hexdigest()) + self.ae(data, rdata) # Now try it without sendfile # }}}