def _check_port(self, port_id, expected_sg_ids):
    port = self.map.ports[port_id]
    expected_sgs = [self.map.sec_groups[sg_id] for sg_id in expected_sg_ids]
    self.assertEqual(port.sec_groups, expected_sgs)
def _check_port(self, port_id, expected_sg_ids):
    port = self.map.ports[port_id]
    expected_sgs = [self.map.sec_groups[sg_id] for sg_id in expected_sg_ids]
    self.assertEqual(port.sec_groups, expected_sgs)