#NEWLINE# def test_sort_with_field_not_allowed( self ) : #NEWLINE# #INDENT# url = '/horses?sort[]=origin' #NEWLINE# response = self . client . get ( response ) #NEWLINE# self . assertEquals ( 400 , response . status_code )