a }|g@sdZddlZddlZddlmZddlZddlmZddlmZddl m Z Gdddej Z Gd d d ej Z ed kreeejd degdS) zTests for certbot.errors.N)mock)messages) achallenges) acme_utilc@s(eZdZdZddZddZddZdS) FailedChallengesTestz*Tests for certbot.errors.FailedChallenges.c Cs@ddlm}|tjdtjtjdtjj dddddh|_ dS) NrFailedChallenges example.comtlsdetailr ZchallZurierrordomainZchallb) certbot.errorsrrDNSr ChallengeBodyrDNS01Error with_coder)selfrrG/usr/lib/python3.9/site-packages/certbot/_internal/tests/errors_test.pysetUps zFailedChallengesTest.setUpcCst|jdsJdS)NTFailed authorization procedure. example.com (dns-01): urn:ietf:params:acme:error:tlsstrr startswithrrrrtest_strs zFailedChallengesTest.test_strc CsTddlm}d}|tjdtjtjdtjj d|dddh}t | d sPJdS) Nrru عدالةr r r r rr) rrrrrrrrrrrr)rrZ arabic_detailZ arabic_errorrrr test_unicodes  z!FailedChallengesTest.test_unicodeN)__name__ __module__ __qualname____doc__rr r!rrrrr src@s(eZdZdZddZddZddZdS) StandaloneBindErrorTestz-Tests for certbot.errors.StandaloneBindError.cCs ddlm}|tjjd|_dS)Nr)StandaloneBindError)rr'rsentinelr)rr'rrrr,s zStandaloneBindErrorTest.setUpcCs(tjj|jjksJd|jjks$JdS)Nr()rr)rZ socket_errorportrrrrtest_instance_args0sz*StandaloneBindErrorTest.test_instance_argscCst|jdsJdS)NzProblem binding to port 1234: rrrrrr 4s z StandaloneBindErrorTest.test_strN)r"r#r$r%rr+r rrrrr&)sr&__main__)r%sysZunittestrZpytestZacmerZcertbotrZ certbot.testsrZTestCaserr&r"exitmainargv__file__rrrrs