def test_buffer_size(self):
    '\n        `Connection.bio_read` accepts an integer giving the maximum number\n        of bytes to read and return.\n        '
    ctx = Context(TLSv1_METHOD)
    conn = Connection(ctx, None)
    conn.set_connect_state()
    try:
        conn.do_handshake()
    except WantReadError:
        pass
    data = conn.bio_read(2)
    assert (2 == len(data))
`Connection.bio_read` accepts an integer giving the maximum number
of bytes to read and return.
def test_buffer_size(self):
    '\n        `Connection.bio_read` accepts an integer giving the maximum number\n        of bytes to read and return.\n        '
    ctx = Context(TLSv1_METHOD)
    conn = Connection(ctx, None)
    conn.set_connect_state()
    try:
        conn.do_handshake()
    except WantReadError:
        pass
    data = conn.bio_read(2)
    assert (2 == len(data))