mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
61120fa2b1
commit
aa4c31ef75
@ -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
|
||||
# }}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user