def test_is_port_managed_managed_port(self):
    port_dict = {'device': 'port-id'}
    self.firewall.sg_port_map.ports[port_dict['device']] = object()
    is_managed = self.firewall.is_port_managed(port_dict)
    self.assertTrue(is_managed)
def test_is_port_managed_managed_port(self):
    port_dict = {'device': 'port-id'}
    self.firewall.sg_port_map.ports[port_dict['device']] = object()
    is_managed = self.firewall.is_port_managed(port_dict)
    self.assertTrue(is_managed)