def __init__(self, mongo_host, mongo_db, mongo_col, jobid): col = pymongo.Connection(mongo_host)[mongo_db][mongo_col] self.store = MongoPageStore(col, jobid)
def setUp(self): c = MongoClient() c.drop_database('hci-test') col = c['hci-test']['crawler.pages'] self.pagestore = MongoPageStore(col, 'JOBID')
def setUp(self): c = pymongo.Connection() c.drop_database('hci-test') col = c['hci-test']['crawler.pages'] self.pagestore = MongoPageStore(col, 'JOBID')