

def test_rowcount(self):
    con = self._connect()
    try:
        cur = con.cursor()
        self.executeDDL1(cur)
        cur.execute(("insert into %sbooze values ('Victoria Bitter')" % self.table_prefix))
        cur.execute(('select name from %sbooze' % self.table_prefix))
        self.assertTrue((cur.rowcount in ((- 1), 1)), 'cursor.rowcount should == number of rows returned, or set to -1 after executing a select statement')
        cur.executeDDL2(cur)
    finally:
        con.close()

dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/MySQL-python-1.2.5/tests/test_MySQLdb_dbapi20.py test_MySQLdb.test_rowcount/VarMisuse@85/160 `self`->`cur`