def test_process_trusted_ports_port_not_found(self):
    'Check that exception is not propagated outside.'
    self.mock_bridge.br.get_vif_port_by_id.return_value = None
    self.firewall.process_trusted_ports(['port_id'])
    self.assertNotIn('port_id', self.firewall.sg_port_map.unfiltered)
Check that exception is not propagated outside.
def test_process_trusted_ports_port_not_found(self):
    
    self.mock_bridge.br.get_vif_port_by_id.return_value = None
    self.firewall.process_trusted_ports(['port_id'])
    self.assertNotIn('port_id', self.firewall.sg_port_map.unfiltered)