def _check_sg(self, sg_id, expected_port_ids):
    sg = self.map.sec_groups[sg_id]
    expected_ports = {self.map.ports[port_id] for port_id in expected_port_ids}
    self.assertEqual(sg.ports, expected_ports)
def _check_sg(self, sg_id, expected_port_ids):
    sg = self.map.sec_groups[sg_id]
    expected_ports = {self.map.ports[port_id] for port_id in expected_port_ids}
    self.assertEqual(sg.ports, expected_ports)