

def test_paramstyle(self):
    try:
        paramstyle = self.driver.paramstyle
        self.assertTrue((paramstyle in ('qmark', 'numeric', 'named', 'format', 'pyformat')))
    except AttributeError:
        self.fail("Driver doesn't define paramstyle")

dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/MySQL-python-1.2.5/tests/dbapi20.py DatabaseAPI20Test.test_paramstyle/original