

def test_cursor_isolation(self):
    con = self._connect()
    try:
        cur1 = con.cursor()
        cur2 = con.cursor()
        self.executeDDL1(cur1)
        cur1.execute(("insert into %sbooze values ('Victoria Bitter')" % self.table_prefix))
        cur1.execute(('select name from %sbooze' % self.table_prefix))
        booze = cur2.fetchall()
        self.assertEqual(len(booze), 1)
        self.assertEqual(len(booze[0]), 1)
        self.assertEqual(booze[0][0], 'Victoria Bitter')
    finally:
        con.close()

dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/MySQL-python-1.2.5/tests/dbapi20.py DatabaseAPI20Test.test_cursor_isolation/VarMisuse@58/89 `cur2`->`cur1`