def setUp(self):
    super(TestOVSFirewallDriver, self).setUp()
    mock_bridge = mock.patch.object(ovs_lib, 'OVSBridge', autospec=True).start()
    self.firewall = ovsfw.OVSFirewallDriver(mock_bridge)
    self.mock_bridge = self.firewall.int_br
    self.mock_bridge.reset_mock()
    self.fake_ovs_port = FakeOVSPort('port', 1, '00:00:00:00:00:00')
    self.mock_bridge.br.get_vif_port_by_id.return_value = self.fake_ovs_port
def setUp(self):
    super(TestOVSFirewallDriver, self).setUp()
    mock_bridge = mock.patch.object(ovs_lib, 'OVSBridge', autospec=True).start()
    self.firewall = ovsfw.OVSFirewallDriver(mock_bridge)
    self.mock_bridge = self.firewall.int_br
    self.mock_bridge.reset_mock()
    self.fake_ovs_port = FakeOVSPort('port', 1, '00:00:00:00:00:00')
    self.mock_bridge.br.get_vif_port_by_id.return_value = self.fake_ovs_port