def METHOD_NAME(self):
    def test(db_dict):
        weedb.create(db_dict)
        connect = weedb.connect(db_dict)
        cursor = connect.cursor()
        cursor.execute("CREATE TABLE test1 ( dateTime INTEGER NOT NULL UNIQUE PRIMARY KEY, col1 int, col2 int)")
        cursor.execute("INSERT INTO test1 (dateTime, col1, col2) VALUES (1, 10, 20)")
        with self.assertRaises(weedb.IntegrityError) as e:
            cursor.execute("INSERT INTO test1 (dateTime, col1, col2) VALUES (1, 30, 40)")
        cursor.close()
        connect.close()
    test(mysql1_dict)
    test(sqdb1_dict)