#NEWLINE# def test_bad_A_ip( self ) : #NEWLINE# #INDENT# osu_block = '2620:105:F000:' #NEWLINE# data = { #NEWLINE# #INDENT# 'label' : 'asdf0' , #NEWLINE# 'domain' : self . o_e , #NEWLINE# 'ip' : ( osu_block + ':1' ) , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertRaises ( ValidationError , self . do_add_record , data ) #NEWLINE# data = { #NEWLINE# #INDENT# 'label' : 'asdf1' , #NEWLINE# 'domain' : self . o_e , #NEWLINE# 'ip' : 123142314 , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertRaises ( ValidationError , self . do_add_record , data ) #NEWLINE# data = { #NEWLINE# #INDENT# 'label' : 'asdf1' , #NEWLINE# 'domain' : self . o_e , #NEWLINE# 'ip' : '128.193.0.1.22' , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertRaises ( ValidationError , self . do_add_record , data ) #NEWLINE# data = { #NEWLINE# #INDENT# 'label' : 'asdf2' , #NEWLINE# 'domain' : self . o_e , #NEWLINE# 'ip' : '128.193.8' , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertRaises ( ValidationError , self . do_add_record , self )