def db_execute(cc, statements):

    if type(statements) not in (list, tuple):
        statements = [statements]

    for statement in statements:
        cc.execute(statement)
Tests a model's field has a method
dataset/ETHPy150Open CGATOxford/cgat/CGAT/Database.py/db_execute--crossover with--dataset/ETHPy150Open dpgaspar/Flask-AppBuilder/flask_appbuilder/tests/test_base.py/FlaskTestCase.test_model_list_method_field