#NEWLINE# def test_parse_email_address( self ) : #NEWLINE# #INDENT# contact_dict = { #NEWLINE# #INDENT# 'contact_type' : 'ADMIN' , #NEWLINE# 'email_address' : 'admin@example.com' , #NEWLINE# #UNINDENT# } #NEWLINE# c = WhoisContact . from_dict ( contact_dict ) #NEWLINE# self . assertEqual ( 'ADMIN' , c . contact_type ) #NEWLINE# self . assertEqual ( 'admin@example.com' , c . email_address . address_value ) #NEWLINE# self . assertEqual ( Address . CAT_EMAIL , c . email_address . category )