From aa4c31ef7580ad01e972ba3ab7042b44deb894c7 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 25 May 2015 20:31:52 +0530 Subject: [PATCH] ... --- src/calibre/srv/tests/http.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 # }}}