#NEWLINE# def test_should_save_attachment_url_in_session( self ) : #NEWLINE# #INDENT# ( _ , transition , _ ) = self . _create_transition ( Order , 'packing' , [ 'pack' ] , source = [ OrderStatus . new . id ] , target = OrderStatus . to_send . id ) #NEWLINE# order = Order . objects . create ( ) #NEWLINE# transition_url = reverse ( 'admin:tests_order_transition' , args = ( order . pk , transition . pk ) ) #NEWLINE# self . login_as_user ( ) #NEWLINE# self . assertFalse ( self . client . session . get ( 'attachment_to_download' ) ) #NEWLINE# self . client . post ( transition_url ) #NEWLINE# self . assertTrue ( self . client . session . get ( 'attachment_to_download' ) )