class Model(object):

    def __init__(self, table, db=app.config['DB_NAME']):
        self._table = table
self._db = db

def find_one(self, spec_or_id=None, *args, **kwargs):
    pass
Connecting to mongodb in a testable way