allows a DomainnameOption to start with a number
This commit is contained in:
@ -16,7 +16,7 @@ def test_domainname():
|
||||
raises(ValueError, "c.d = 'toto'")
|
||||
c.d = 'toto3.com'
|
||||
raises(ValueError, "c.d = 'toto3.3la'")
|
||||
raises(ValueError, "c.d = '3toto.com'")
|
||||
#raises(ValueError, "c.d = '3toto.com'")
|
||||
raises(ValueError, "c.d = 'toto.co3'")
|
||||
raises(ValueError, "c.d = 'toto_super.com'")
|
||||
c.d = 'toto-.com'
|
||||
@ -25,6 +25,15 @@ def test_domainname():
|
||||
c.f = 'toto.com'
|
||||
c.f = 'toto'
|
||||
|
||||
def test_domainname_special():
|
||||
"""domain name option that starts with a number
|
||||
"""
|
||||
d = DomainnameOption('d', '')
|
||||
od = OptionDescription('a', '', [d])
|
||||
c = Config(od)
|
||||
c.read_write()
|
||||
c.d = '1toto.com'
|
||||
c.d = '123toto.com'
|
||||
|
||||
def test_domainname_netbios():
|
||||
d = DomainnameOption('d', '', type_='netbios')
|
||||
|
Reference in New Issue
Block a user