Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.112
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
python3 /
dist-packages /
certbot /
tests /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2022-03-20 10:36
display
[ DIR ]
drwxrwxrwx
2022-03-20 10:36
testdata
[ DIR ]
drwxrwxrwx
2022-03-20 10:35
__init__.py
20
B
-rw-r--r--
2018-11-07 22:14
account_test.py
14.36
KB
-rw-r--r--
2018-11-07 22:14
acme_util.py
3.18
KB
-rw-r--r--
2018-11-07 22:14
auth_handler_test.py
23.12
KB
-rw-r--r--
2018-11-07 22:14
cert_manager_test.py
28.09
KB
-rw-r--r--
2018-11-07 22:14
cli_test.py
19.31
KB
-rw-r--r--
2018-11-07 22:14
client_test.py
25.56
KB
-rw-r--r--
2018-11-07 22:14
compat_test.py
736
B
-rw-r--r--
2018-11-07 22:14
configuration_test.py
6.7
KB
-rw-r--r--
2018-11-07 22:14
crypto_util_test.py
13.56
KB
-rw-r--r--
2018-11-07 22:14
eff_test.py
5.94
KB
-rw-r--r--
2018-11-07 22:14
error_handler_test.py
5.31
KB
-rw-r--r--
2018-11-07 22:14
errors_test.py
1.8
KB
-rw-r--r--
2018-11-07 22:14
hook_test.py
16.67
KB
-rw-r--r--
2018-11-07 22:14
lock_test.py
3.84
KB
-rw-r--r--
2018-11-07 22:14
log_test.py
14.92
KB
-rw-r--r--
2018-11-07 22:14
main_test.py
78.7
KB
-rw-r--r--
2018-11-07 22:14
notify_test.py
2.07
KB
-rw-r--r--
2018-11-07 22:14
ocsp_test.py
6.26
KB
-rw-r--r--
2018-11-07 22:14
renewal_test.py
4.18
KB
-rw-r--r--
2020-09-26 20:25
renewupdater_test.py
5.33
KB
-rw-r--r--
2018-11-07 22:14
reporter_test.py
2.73
KB
-rw-r--r--
2018-11-07 22:14
reverter_test.py
18.7
KB
-rw-r--r--
2018-11-07 22:14
storage_test.py
41.53
KB
-rw-r--r--
2018-11-07 22:14
util.py
14.02
KB
-rw-r--r--
2018-11-07 22:14
util_test.py
21.29
KB
-rw-r--r--
2018-11-07 22:14
Save
Rename
"""Tests for certbot.errors.""" import unittest import mock from acme import messages from certbot import achallenges from certbot.tests import acme_util class FailedChallengesTest(unittest.TestCase): """Tests for certbot.errors.FailedChallenges.""" def setUp(self): from certbot.errors import FailedChallenges self.error = FailedChallenges(set([achallenges.DNS( domain="example.com", challb=messages.ChallengeBody( chall=acme_util.DNS01, uri=None, error=messages.Error(typ="tls", detail="detail")))])) def test_str(self): self.assertTrue(str(self.error).startswith( "Failed authorization procedure. example.com (dns-01): tls")) def test_unicode(self): from certbot.errors import FailedChallenges arabic_detail = u'\u0639\u062f\u0627\u0644\u0629' arabic_error = FailedChallenges(set([achallenges.DNS( domain="example.com", challb=messages.ChallengeBody( chall=acme_util.DNS01, uri=None, error=messages.Error(typ="tls", detail=arabic_detail)))])) self.assertTrue(str(arabic_error).startswith( "Failed authorization procedure. example.com (dns-01): tls")) class StandaloneBindErrorTest(unittest.TestCase): """Tests for certbot.errors.StandaloneBindError.""" def setUp(self): from certbot.errors import StandaloneBindError self.error = StandaloneBindError(mock.sentinel.error, 1234) def test_instance_args(self): self.assertEqual(mock.sentinel.error, self.error.socket_error) self.assertEqual(1234, self.error.port) def test_str(self): self.assertTrue(str(self.error).startswith( "Problem binding to port 1234: ")) if __name__ == "__main__": unittest.main() # pragma: no cover