#NEWLINE# def test_no_type( self ) : #NEWLINE# #INDENT# data = { #NEWLINE# #INDENT# 'label' : 'uuu' , #NEWLINE# 'domain' : self . f_o_e , #NEWLINE# 'ip' : '128.193.4.1' , #NEWLINE# #UNINDENT# } #NEWLINE# rec = AddressRecord ( label = data [ 'label' ] , domain = data [ 'domain' ] , ip_str = data [ 'ip' ] , ip_type = 'x' ) #NEWLINE# self . assertRaises ( ValidationError , rec . save ) #NEWLINE# data = { #NEWLINE# #INDENT# 'label' : 'uuu' , #NEWLINE# 'domain' : self . f_o_e , #NEWLINE# 'ip' : '128.193.4.1' , #NEWLINE# #UNINDENT# } #NEWLINE# rec = AddressRecord ( label = data [ 'label' ] , domain = data [ 'domain' ] , ip_str = data [ 'ip' ] ) #NEWLINE# self . assertRaises ( ValidationError , rec . save )