def setUp(self): super(TestUDPCollectorService, self).setUp() self.srv = service.UDPCollectorService() self.counter = sample.Sample( name='foobar', type='bad', unit='F', volume=1, user_id='jd', project_id='ceilometer', resource_id='cat', timestamp='NOW!', resource_metadata={}, ).as_dict()
def test_service_has_storage_conn(self): srv = service.UDPCollectorService() self.assertIsNotNone(srv.storage_conn)