#NEWLINE# def test_reverse( self ) : #NEWLINE# #INDENT# seen = set ( ) #NEWLINE# with self . assertNumQueries ( 4 ) : #NEWLINE# #INDENT# last = sys . maxint #NEWLINE# for ( x , n ) in enumerate ( RangeQuerySetWrapper ( User . objects . all ( ) , step = ( - 1 ) ) ) : #NEWLINE# #INDENT# self . assertTrue ( ( n . id not in seen ) ) #NEWLINE# seen . add ( x . id ) #NEWLINE# self . assertTrue ( ( n . id < last ) ) #NEWLINE# last = n . id