

def get_zone(self, zone_id):
    "\n        >>> driver = DummyDNSDriver('key', 'secret')\n        >>> driver.get_zone(zone_id='foobar')\n        ... #doctest: +IGNORE_EXCEPTION_DETAIL\n        Traceback (most recent call last):\n        ZoneDoesNotExistError:\n\n        @inherits: :class:`DNSDriver.get_zone`\n        "
    if (zone_id not in self._zones):
        raise ZoneDoesNotExistError(driver=self, value=None, zone_id=zone_id)
    return self._zones[zone_id]['zone']

dataset/ETHPy150Open apache/libcloud/libcloud/dns/drivers/dummy.py DummyDNSDriver.get_zone/original