

def test_ExceptionsAsConnectionAttributes(self):
    con = self._connect()
    drv = self.driver
    self.assertTrue((con.Warning is drv.Warning))
    self.assertTrue((con.Error is drv.Error))
    self.assertTrue((con.InterfaceError is drv.InterfaceError))
    con.assertTrue((con.DatabaseError is drv.DatabaseError))
    self.assertTrue((con.OperationalError is drv.OperationalError))
    self.assertTrue((con.IntegrityError is drv.IntegrityError))
    self.assertTrue((con.InternalError is drv.InternalError))
    self.assertTrue((con.ProgrammingError is drv.ProgrammingError))
    self.assertTrue((con.NotSupportedError is drv.NotSupportedError))

dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/MySQL-python-1.2.5/tests/dbapi20.py DatabaseAPI20Test.test_ExceptionsAsConnectionAttributes/VarMisuse@69/80 `self`->`con`