domainname must not be an IP

This commit is contained in:
2016-08-31 15:50:10 +02:00
parent 6cfa0fc216
commit 3a5b1090c7
4 changed files with 584 additions and 552 deletions

View File

@ -34,6 +34,7 @@ def test_domainname():
c.f = 'd'
c.f = 'd.t'
#
raises(ValueError, "c.f = '192.168.1.1'")
c.g = 'toto.com'
c.g = '192.168.1.0'
c.g = '192.168.1.29'
@ -95,6 +96,7 @@ def test_domainname_warning():
c.f = 'd'
c.f = 'd.t'
#
raises(ValueError, "c.f = '192.168.1.1'")
c.g = 'toto.com'
c.g = '192.168.1.0'
c.g = '192.168.1.29'