#NEWLINE# def test_search_when_ordering_gives_error( self ) : #NEWLINE# #INDENT# response = self . get_response ( search = 'james' , order = 'title' ) #NEWLINE# content = json . loads ( response . content . decode ( 'UTF-8' ) ) #NEWLINE# self . assertEqual ( response . status_code , 400 ) #NEWLINE# self . assertEqual ( content , { #NEWLINE# #INDENT# 'message' : 'ordering with a search query is not supported' , #NEWLINE# #UNINDENT# } )