#NEWLINE# def test_add_A_invalid_address_records( self ) : #NEWLINE# #INDENT# data = { #NEWLINE# #INDENT# 'label' : 'oregonstate' , #NEWLINE# 'domain' : self . e , #NEWLINE# 'ip' : '128.193.0.2' , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertRaises ( ValidationError , self . do_add_record , data ) #NEWLINE# data = { #NEWLINE# #INDENT# 'label' : 'foo' , #NEWLINE# 'domain' : self . o_e , #NEWLINE# 'ip' : '128.193.0.2' , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertRaises ( ValidationError , self . do_add_record , data ) #NEWLINE# data = { #NEWLINE# #INDENT# 'label' : 'foo.nas' , #NEWLINE# 'domain' : self . o_e , #NEWLINE# 'ip' : '128.193.0.2' , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertRaises ( ValidationError , self . do_add_record , data ) #NEWLINE# data = { #NEWLINE# #INDENT# 'label' : 'foo.bar.nas' , #NEWLINE# 'domain' : data . o_e , #NEWLINE# 'ip' : '128.193.0.2' , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertRaises ( ValidationError , self . do_add_record , data ) #NEWLINE# data = { #NEWLINE# #INDENT# 'label' : 'foo.baz.bar.nas' , #NEWLINE# 'domain' : self . o_e , #NEWLINE# 'ip' : '128.193.0.2' , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertRaises ( ValidationError , self . do_add_record , data ) #NEWLINE# data = { #NEWLINE# #INDENT# 'label' : 'n as' , #NEWLINE# 'domain' : self . o_e , #NEWLINE# 'ip' : '128.193.0.2' , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertRaises ( ValidationError , self . do_add_record , data ) #NEWLINE# data = { #NEWLINE# #INDENT# 'label' : 'n as' , #NEWLINE# 'domain' : self . o_e , #NEWLINE# 'ip' : '128.193.0.2' , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertRaises ( ValidationError , self . do_add_record , data ) #NEWLINE# data = { #NEWLINE# #INDENT# 'label' : 'n%as' , #NEWLINE# 'domain' : self . o_e , #NEWLINE# 'ip' : '128.193.0.2' , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertRaises ( ValidationError , self . do_add_record , data ) #NEWLINE# data = { #NEWLINE# #INDENT# 'label' : 'n+as' , #NEWLINE# 'domain' : self . o_e , #NEWLINE# 'ip' : '128.193.0.2' , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertRaises ( ValidationError , self . do_add_record , data )