'Large query and response (>=16MB)'

def test_largedata(self):

    cur = self.connections[0].cursor()
    cur.execute('SELECT    @@max_allowed_packet')
    if (cur.fetchone()[0] < (((16 * 1024) * 1024) + 10)):
        print 'Set    max_allowed_packet    to    bigger    than    17MB'
        return
    t = ('a' * ((16 * 1024) * 1024))
    cur.execute((("SELECT    '" + t) + "'"))
    assert (cur.fetchone()[0] == t)
