#NEWLINE# def test_email_validation_with_empty_string( ) : #NEWLINE# #INDENT# ' test with empty string Email' #NEWLINE# schema = Schema ( { #NEWLINE# #INDENT# 'email' : Email ( ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# try : #NEWLINE# #INDENT# schema ( { #NEWLINE# #INDENT# 'email' : '' , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# except MultipleInvalid as e : #NEWLINE# #INDENT# assert_equal ( str ( e ) , "expected an Email for dictionary value @ data['email']" ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# assert False , 'Did not raise Invalid for empty string url'