def test__initialize_egress_no_port_security_sends_to_egress(self):
    self.mock_bridge.br.db_get_val.return_value = {'tag': TESTING_VLAN_TAG}
    self.firewall._initialize_egress_no_port_security('port_id')
    expected_call = mock.call(table=ovs_consts.TRANSIENT_TABLE, priority=100, in_port=self.fake_ovs_port.ofport, actions=('set_field:%d->reg%d,set_field:%d->reg%d,resubmit(,%d)' % (self.fake_ovs_port.ofport, ovsfw_consts.REG_PORT, TESTING_VLAN_TAG, ovsfw_consts.REG_NET, ovs_consts.ACCEPT_OR_INGRESS_TABLE)))
    calls = self.mock_bridge.br.add_flow.call_args_list
    self.assertIn(expected_call, calls)
def test__initialize_egress_no_port_security_sends_to_egress(self):
    self.mock_bridge.br.db_get_val.return_value = {'tag': TESTING_VLAN_TAG}
    self.firewall._initialize_egress_no_port_security('port_id')
    expected_call = mock.call(table=ovs_consts.TRANSIENT_TABLE, priority=100, in_port=self.fake_ovs_port.ofport, actions=('set_field:%d->reg%d,set_field:%d->reg%d,resubmit(,%d)' % (self.fake_ovs_port.ofport, ovsfw_consts.REG_PORT, TESTING_VLAN_TAG, ovsfw_consts.REG_NET, ovs_consts.ACCEPT_OR_INGRESS_TABLE)))
    calls = self.mock_bridge.br.add_flow.call_args_list
    self.assertIn(expected_call, calls)