pooling EmailOption, UsernameOption and FilenameOption
This commit is contained in:
@ -143,10 +143,11 @@ def test_email():
|
||||
od = OptionDescription('a', '', [e])
|
||||
c = Config(od)
|
||||
c.read_write()
|
||||
c.e = 'root@foo.com'
|
||||
raises(ValueError, "c.e = 'root'")
|
||||
raises(ValueError, "c.e = 'root@domain'")
|
||||
raises(ValueError, "c.e = 'root[]@domain'")
|
||||
c.e = u'foo-bar.baz@example.com'
|
||||
c.e = u'root@foo.com'
|
||||
c.e = u'root@domain'
|
||||
raises(ValueError, "c.e = u'root'")
|
||||
raises(ValueError, "c.e = u'root[]@domain'")
|
||||
|
||||
|
||||
def test_url():
|
||||
|
Reference in New Issue
Block a user