def test_partial_read(self):
        conn = Connection(self.sock)

        data = binary_data(FCGI_RECORD_HEADER_LEN - 1)

        self.sock.sendall(data)

        self.sock.flip()

        self.assertRaises(PartialRead, conn.read_record)
dataset/ETHPy150Open momyc/gevent-fastcgi/tests/base/test_connection.py/ConnectionTests.test_partial_read/original