def setUp(self): super(TestCollectorService, self).setUp() self.srv = service.CollectorService('the-host', 'the-topic') self.ctx = None
def test_service_has_storage_conn(self): # Test an unmocked default CollectorService srv = service.CollectorService('the-host', 'the-topic') self.assertIsNotNone(srv.storage_conn)