Python db.DBError() Examples
The following are 2
code examples of db.DBError().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
db
, or try the search function
.
Example #1
Source File: pymysqlt.py From dbpy with GNU General Public License v2.0 | 5 votes |
def test_dup_key(self): db.setup(config,adapter='pymysql') f = lambda: db.setup(config,adapter='pymysql') self.assertRaises(db.DBError, f)
Example #2
Source File: dbt.py From dbpy with GNU General Public License v2.0 | 5 votes |
def test_dup_key(self): db.setup(config) f = lambda: db.setup(config) self.assertRaises(db.DBError, f)