mirror of
https://github.com/certbot/certbot.git
synced 2026-08-02 03:11:55 +02:00
Use python2.6 compatible test assertions
This commit is contained in:
@@ -177,23 +177,21 @@ class CLITest(unittest.TestCase):
|
||||
|
||||
def test_check_config_sanity_domain(self):
|
||||
# Punycode
|
||||
self.assertRaisesRegexp(errors.ConfigurationError,
|
||||
"Error: Punycode domains are not supported",
|
||||
self.assertRaises(errors.ConfigurationError,
|
||||
self._call,
|
||||
['-d', 'this.is.xn--ls8h.tld'])
|
||||
# FQDN
|
||||
self.assertRaisesRegexp(errors.ConfigurationError,
|
||||
self.assertRaises(errors.ConfigurationError,
|
||||
"Error: Requested domain is not FQDN",
|
||||
self._call,
|
||||
['-d', 'comma,gotwrong.tld'])
|
||||
# FQDN 2
|
||||
self.assertRaisesRegexp(errors.ConfigurationError,
|
||||
self.assertRaises(errors.ConfigurationError,
|
||||
"Error: Requested domain is not FQDN",
|
||||
self._call,
|
||||
['-d', 'illegal.character=.tld'])
|
||||
# Wildcard
|
||||
self.assertRaisesRegexp(errors.ConfigurationError,
|
||||
"Error: Wildcard domains are not supported",
|
||||
self.assertRaises(errors.ConfigurationError,
|
||||
self._call,
|
||||
['-d', '*.wildcard.tld'])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user