txacme.test.test_challenges module

Tests for txacme.challenges.

class txacme.test.test_challenges.HTTPResponderTests(*args, **kwargs)[source]

HTTP01Responder is a responder for http-01 challenges.

test_start_responding()[source]

Calling start_responding makes an appropriate resource available.

class txacme.test.test_challenges.TLSResponderTests(*args, **kwargs)[source]

TLSSNI01Responder is a responder for tls-sni-01 challenges that works with txsni.

test_start_responding()[source]

Calling start_responding makes an appropriate entry appear in the host map.

class txacme.test.test_challenges.MergingProxyTests(*args, **kwargs)[source]

_MergingMappingProxy merges two mappings together.

test_contains()[source]

The mapping only contains a key if it can be gotten.

test_get_both()[source]

Getting an key that exists in both the underlay and the overlay returns the value from the overlay.

test_get_overlay()[source]

Getting an key that only exists in the overlay returns the value from the overlay.

test_get_underlay()[source]

Getting an key that only exists in the underlay returns the value from the underlay.

test_iter()[source]

__iter__ of the proxy does not produce duplicate keys.

test_len()[source]

__len__ of the proxy does not count duplicates.

class txacme.test.test_challenges.LibcloudResponderTests(*args, **kwargs)[source]

LibcloudDNSResponder implements a responder for dns-01 challenges using libcloud on the backend.

test_auto_zone()[source]

If the configured zone_name is None, the zone will be guessed by finding the longest zone that is a suffix of the server name.

test_auto_zone_missing()[source]

If the configured zone_name is None, and no matching zone is found, NotInZone is raised.

test_daemon_threads()[source]

_daemon_thread creates thread objects with daemon set.

test_missing_zone()[source]

ZoneNotFound is raised if the configured zone cannot be found at the configured provider.

test_start_responding()[source]

Calling start_responding causes an appropriate TXT record to be created.

test_wrong_zone()[source]

Trying to respond for a domain not in the configured zone results in a NotInZone exception.