def setUp(self): "set up connection" self.dburi = 'mongodb://localhost:8230' self.dbname = 'test_analytics' self.config = { 'mongodb': { 'dburi': self.dburi }, 'db': { 'name': self.dbname } } self.storage = StorageManager(self.config)