def setUp(self):
    super(ServiceTestCase, self).setUp()
    self.host = 'foo'
    self.topic = 'neutron-agent'
    self.target_mock = mock.patch('oslo_messaging.Target')
    self.target_mock.start()
    self.messaging_conf = messaging_conffixture.ConfFixture(CONF)
    self.messaging_conf.transport_driver = 'fake'
    self.messaging_conf.response_timeout = 0
    self.useFixture(self.messaging_conf)
    self.addCleanup(rpc.cleanup)
    rpc.init(CONF)
def setUp(self):
    super(ServiceTestCase, self).setUp()
    self.host = 'foo'
    self.topic = 'neutron-agent'
    self.target_mock = mock.patch('oslo_messaging.Target')
    self.target_mock.start()
    self.messaging_conf = messaging_conffixture.ConfFixture(CONF)
    self.messaging_conf.transport_driver = 'fake'
    self.messaging_conf.response_timeout = 0
    self.useFixture(self.messaging_conf)
    self.addCleanup(rpc.cleanup)
    rpc.init(CONF)