def setUp(self):
    super(TestCookieContext, self).setUp()
    mock.patch('neutron.agent.ovsdb.api.from_config').start()
    mock.patch('neutron.agent.linux.openvswitch_firewall.iptables.Helper').start()
    self.execute = mock.patch.object(utils, 'execute', spec=utils.execute).start()
    bridge = ovs_bridge.OVSAgentBridge('foo')
    mock.patch.object(ovsfw.OVSFirewallDriver, 'initialize_bridge', return_value=bridge.deferred(full_ordered=True, use_bundle=True)).start()
    self.firewall = ovsfw.OVSFirewallDriver(bridge)
    self.execute.reset_mock()
def setUp(self):
    super(TestCookieContext, self).setUp()
    mock.patch('neutron.agent.ovsdb.api.from_config').start()
    mock.patch('neutron.agent.linux.openvswitch_firewall.iptables.Helper').start()
    self.execute = mock.patch.object(utils, 'execute', spec=utils.execute).start()
    bridge = ovs_bridge.OVSAgentBridge('foo')
    mock.patch.object(ovsfw.OVSFirewallDriver, 'initialize_bridge', return_value=bridge.deferred(full_ordered=True, use_bundle=True)).start()
    self.firewall = ovsfw.OVSFirewallDriver(bridge)
    self.execute.reset_mock()