':py:obj:`Connection.bio_read` accepts an integer giving the maximum
number of bytes to read and return.'

def test_buffer_size(self):

    ctx = Context(TLSv1_METHOD)
    conn = Connection(ctx, None)
    conn.set_connect_state()
    try:
        conn.do_handshake()
    except WantReadError:
        pass
    data = conn.bio_read(2)
    self.assertEqual(2, len(data))
