def test__get_internal_port_not_found(self):
    ri = self._create_router()
    port = {'fixed_ips': [{'subnet_id': mock.sentinel.subnet_id}]}
    router_ports = [port]
    ri.router.get.return_value = router_ports
    self.assertIsNone(ri._get_internal_port(mock.sentinel.subnet_id2))
def test__get_internal_port_not_found(self):
    ri = self._create_router()
    port = {'fixed_ips': [{'subnet_id': mock.sentinel.subnet_id}]}
    router_ports = [port]
    ri.router.get.return_value = router_ports
    self.assertIsNone(ri._get_internal_port(mock.sentinel.subnet_id2))