fixing escaped string on domain test
This commit is contained in:
parent
8658ac531e
commit
3ce7cd6c50
|
@ -9,11 +9,11 @@ class TestDNSProvider(unittest.TestCase):
|
||||||
self.assertTrue(dnsutil.is_valid_domain("exam--ple.io"))
|
self.assertTrue(dnsutil.is_valid_domain("exam--ple.io"))
|
||||||
self.assertTrue(dnsutil.is_valid_domain("a.example.com"))
|
self.assertTrue(dnsutil.is_valid_domain("a.example.com"))
|
||||||
self.assertTrue(dnsutil.is_valid_domain("example.io"))
|
self.assertTrue(dnsutil.is_valid_domain("example.io"))
|
||||||
self.assertTrue(dnsutil.is_valid_domain("example-of-63-character-domain-label-length-limit-1234567890123.com"))
|
self.assertTrue(dnsutil.is_valid_domain("example-of-under-63-character-domain-label-length-limit-1234567.com"))
|
||||||
self.assertFalse(dnsutil.is_valid_domain("example-of-63-character-domain-label-length-limit-12345678901234.com"))
|
self.assertFalse(dnsutil.is_valid_domain("example-of-over-63-character-domain-label-length-limit-123456789.com"))
|
||||||
self.assertFalse(dnsutil.is_valid_domain("_acme-chall.example.com"))
|
self.assertFalse(dnsutil.is_valid_domain("_acme-chall.example.com"))
|
||||||
self.assertFalse(dnsutil.is_valid_domain("e/xample.com"))
|
self.assertFalse(dnsutil.is_valid_domain("e/xample.com"))
|
||||||
self.assertFalse(dnsutil.is_valid_domain("exam\ple.com"))
|
self.assertFalse(dnsutil.is_valid_domain("exam\\ple.com"))
|
||||||
self.assertFalse(dnsutil.is_valid_domain("*.example.com"))
|
self.assertFalse(dnsutil.is_valid_domain("*.example.com"))
|
||||||
self.assertFalse(dnsutil.is_valid_domain("-example.io"))
|
self.assertFalse(dnsutil.is_valid_domain("-example.io"))
|
||||||
self.assertFalse(dnsutil.is_valid_domain("example-.io"))
|
self.assertFalse(dnsutil.is_valid_domain("example-.io"))
|
||||||
|
|
Loading…
Reference in New Issue