#NEWLINE# def test_filter_backend_ordering( self ) : #NEWLINE# #INDENT# queryset = TestModel . es . all ( ) #NEWLINE# filter_backend = ElasticsearchFilterBackend ( ) #NEWLINE# self . fake_view . ordering = ( '-username' , ) #NEWLINE# queryset = filter_backend . filter_queryset ( self . fake_request , queryset , self . fake_view ) . deserialize ( ) #NEWLINE# self . assertEqual ( queryset [ 0 ] . id , self . model2 . id ) #NEWLINE# self . assertEqual ( queryset [ 1 ] . id , self . model1 . id ) #NEWLINE# del self . fake_view . ordering