#NEWLINE# def test_response_external_id( self ) : #NEWLINE# #INDENT# 'Make sure external_id context is sent to Vumi.' #NEWLINE# message = self . create_outgoing_message ( ) #NEWLINE# config = { #NEWLINE# #INDENT# 'sendsms_url' : 'http://example.com' , #NEWLINE# #UNINDENT# } #NEWLINE# backend = VumiBackend ( None , 'vumi' , ** config ) #NEWLINE# kwargs = backend . prepare_request ( message . id , backend . text , [ message . connections [ 0 ] . identity ] , { #NEWLINE# #INDENT# 'external_id' : 'ASDF1234' , #NEWLINE# #UNINDENT# } ) #NEWLINE# data = json . loads ( kwargs [ 'data' ] ) #NEWLINE# self . assertEqual ( 'ASDF1234' , data [ 'in_reply_to' ] )