def teardown_db():
    client = MongoClient(api.config.testing_mongo_addr,
                         api.config.testing_mongo_port)[api.config.testing_mongo_db_name]
    client.connection.drop_database(api.config.testing_mongo_db_name)
    client.connection.disconnect()
Drops the db and shuts down the mongodb instance.
dataset/ETHPy150Open EasyCTF/easyctf-2015/api/tests/conftest.py/teardown_db