

def show_subnet(self, subnet, **_params):
    try:
        return {
            'subnet': self._fake_subnets[subnet],
        }
    except KeyError:
        msg = ('Port %s not found' % subnet)
        raise n_exc.NeutronClientException(message=msg, status_code=404)

dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/tests/unit/api/openstack/compute/test_neutron_security_groups.py MockClient.show_subnet/original