cheroot.test.test_makefile module#
Tests for cheroot.makefile
.
- class cheroot.test.test_makefile.MockSocket#
Bases:
object
A mock socket.
- recv(size)#
Simulate
recv
for Python 2.
- recv_into(buf)#
Simulate
recv_into
for Python 3.
- send(val)#
Simulate a send.
- cheroot.test.test_makefile.test_bytes_read()#
Reader should capture bytes read.
- cheroot.test.test_makefile.test_bytes_written()#
Writer should capture bytes written.