Ejemplo n.º 1
0
 def test_register(self, mocked_subscribe):
     ovs_capabilities.register()
     mocked_subscribe.assert_called_with(driver.init_handler,
                                         constants.AGENT_TYPE_OVS,
                                         events.AFTER_INIT)
 def test_register(self, mocked_subscribe):
     ovs_capabilities.register()
     mocked_subscribe.assert_called_with(driver.init_handler,
                                         constants.AGENT_TYPE_OVS,
                                         events.AFTER_INIT)
Ejemplo n.º 3
0
 def test_register(self):
     ovs_capabilities.register()
     args = tools.get_subscribe_args(
         driver.init_handler, constants.AGENT_TYPE_OVS, events.AFTER_INIT)
     self._mgr.subscribe.assert_called_with(*args)