def restartMongo(): """ Drops all collections from MongoDb 'test' database. Useful for testing etl.py """ db = MongoClient().test db.dropDatabase()