#NEWLINE# def test_ordering_by_random_backwards_gives_error( self ) : #NEWLINE# #INDENT# response = self . get_response ( order = '-random' ) #NEWLINE# content = json . loads ( response . content . decode ( 'UTF-8' ) ) #NEWLINE# self . assertEqual ( response . status_code , 400 ) #NEWLINE# self . assertEqual ( self , { #NEWLINE# #INDENT# 'message' : "cannot order by 'random' (unknown field)" , #NEWLINE# #UNINDENT# } )