def METHOD_NAME(self):
    def accept_once(listenfd):
        try:
            conn, addr = listenfd.accept()
            conn.write(b'hello\r\n')
            greenio.shutdown_safe(conn)
            conn.close()
        finally:
            greenio.shutdown_safe(listenfd)
            listenfd.close()
    server = eventlet.wrap_ssl(
        eventlet.listen(('0.0.0.0', 0)),
        tests.private_key_file,
        tests.certificate_file,
        server_side=True
    )
    eventlet.spawn_n(accept_once, server)
    raw_client = eventlet.connect(('127.0.0.1', server.getsockname()[1]))
    client = ssl.wrap_socket(raw_client)
    fd = client.makefile('rb', 8192)
    assert fd.readline() == b'hello\r\n'
    try:
        self.assertEqual(b'', fd.read(10))
    except greenio.SSL.ZeroReturnError:
        # if it's a GreenSSL object it'll do this
        pass
    greenio.shutdown_safe(client)
    client.close()
    check_hub()