

def setUp(self):
    config = get_collector_config('MongoDBCollector', {
        'hosts': ['localhost:27017', 'localhost:27057'],
        'databases': '^db',
    })
    self.collector = MongoDBCollector(config, None)
    config.connection = MagicMock()

dataset/ETHPy150Open BrightcoveOS/Diamond/src/collectors/mongodb/test/testmongodb.py TestMongoMultiHostDBCollector.setUp/VarMisuse@46/73 `self`->`config`