def create(cls, reactor, driver_name, username, password, zone_name=None, settle_delay=60.0): """ Create a responder. :param reactor: The Twisted reactor to use for threading support. :param str driver_name: The name of the libcloud DNS driver to use. :param str username: The username to authenticate with (the meaning of this is driver-specific). :param str password: The username to authenticate with (the meaning of this is driver-specific). :param str zone_name: The zone name to respond in, or ``None`` to automatically detect zones. Usually auto-detection should be fine, unless restricting responses to a single specific zone is desired. :param float settle_delay: The time, in seconds, to allow for the DNS provider to propagate record changes. """ return cls(reactor=reactor, thread_pool=pool(const(1), threadFactory=_daemon_thread), driver=get_driver(driver_name)(username, password), zone_name=zone_name, settle_delay=settle_delay)
def create(cls, reactor, driver_name, username, password, zone_name=None, settle_delay=60.0): """ Create a responder. :param reactor: The Twisted reactor to use for threading support. :param str driver_name: The name of the libcloud DNS driver to use. :param str username: The username to authenticate with (the meaning of this is driver-specific). :param str password: The username to authenticate with (the meaning of this is driver-specific). :param str zone_name: The zone name to respond in, or ``None`` to automatically detect zones. Usually auto-detection should be fine, unless restricting responses to a single specific zone is desired. :param float settle_delay: The time, in seconds, to allow for the DNS provider to propagate record changes. """ return cls( reactor=reactor, thread_pool=pool(const(1), threadFactory=_daemon_thread), driver=get_driver(driver_name)(username, password), zone_name=zone_name, settle_delay=settle_delay)
def test_const(self, x): self.assertThat(const(x)(), Equals(x))