#NEWLINE# def test_endpoint_register_bad_data_ip( self ) : #NEWLINE# #INDENT# factory = RequestFactory ( ) #NEWLINE# request = factory . post ( '/endpoint/register' , { #NEWLINE# #INDENT# 'group' : 'a' , #NEWLINE# 'secret' : 's' , #NEWLINE# 'data' : '{"ip": "10.1.1.1"}' , #NEWLINE# #UNINDENT# } ) #NEWLINE# response = views . endpoint_register ( self ) #NEWLINE# self . assertPlainText ( response , 'ERROR Assert' )