

def setUp(self):
    super(TestDhcpRpcCallback, self).setUp()
    self.plugin_p = mock.patch('neutron.manager.NeutronManager.get_plugin')
    get_plugin = self.plugin_p.start()
    self.plugin = mock.MagicMock()
    get_plugin.return_value = self.plugin
    self.callbacks = dhcp_rpc.DhcpRpcCallback()
    self.log_p = mock.patch('neutron.api.rpc.handlers.dhcp_rpc.LOG')
    self.log = self.log_p.start()
    set_dirty_p = mock.patch('neutron.quota.resource_registry.set_resources_dirty')
    self.mock_set_dirty = set_dirty_p.start()
    self.utils_p = mock.patch('neutron.plugins.common.utils.create_port')
    self.utils = self.utils_p.start()

dataset/ETHPy150Open openstack/neutron/neutron/tests/unit/api/rpc/handlers/test_dhcp_rpc.py TestDhcpRpcCallback.setUp/original