#NEWLINE# def test_order_with_pk_filter( self ) : #NEWLINE# #INDENT# ( pks , priorities ) = self . create_ordered_model_items ( ) #NEWLINE# self . assertEquals ( [ item . priority for item in OrderedModel . objects . filter ( pk__in = pks ) ] , sorted ( priorities , reverse = True ) ) #NEWLINE# self . assertEquals ( [ item . priority for item in OrderedModel . objects . filter ( id__in = pks ) ] , sorted ( priorities , reverse = True ) ) #NEWLINE# self . assertEquals ( [ item . priority for item in OrderedModel . objects . filter ( pk__in = pks ) . reverse ( ) ] , sorted ( priorities , reverse = False ) )