This commit is contained in:
Kovid Goyal 2015-05-25 20:31:52 +05:30
parent 61120fa2b1
commit aa4c31ef75

View File

@ -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
# }}}