#NEWLINE# def test_order_by_pk( self ) : #NEWLINE# #INDENT# query = transform_query ( connections [ 'default' ] , TransformTestModel . objects . order_by ( 'pk' ) . query ) #NEWLINE# self . assertEqual ( '__key__' , query . order_by [ 0 ] ) #NEWLINE# query = transform_query ( connections [ 'default' ] , TransformTestModel . objects . order_by ( '-pk' ) . query ) #NEWLINE# self . assertEqual ( '-__key__' , query . order_by [ 0 ] )