a hostname shall not start with a number
This commit is contained in:
@ -25,15 +25,19 @@ def test_domainname():
|
||||
c.f = 'toto.com'
|
||||
c.f = 'toto'
|
||||
|
||||
def test_domainname_special():
|
||||
"""domain name option that starts with a number
|
||||
def test_special_domain_name():
|
||||
"""domain name option that starts with a number or not
|
||||
"""
|
||||
d = DomainnameOption('d', '')
|
||||
od = OptionDescription('a', '', [d])
|
||||
e = DomainnameOption('e', '', type_='netbios')
|
||||
od = OptionDescription('a', '', [d,e])
|
||||
c = Config(od)
|
||||
c.read_write()
|
||||
c.d = '1toto.com'
|
||||
c.d = '123toto.com'
|
||||
c.e = 'toto'
|
||||
raises(ValueError, "c.e = '1toto'")
|
||||
|
||||
|
||||
def test_domainname_netbios():
|
||||
d = DomainnameOption('d', '', type_='netbios')
|
||||
|
Reference in New Issue
Block a user