#NEWLINE# def test_get_incoming_data( self ) : #NEWLINE# #INDENT# 'get_incoming_data should return matching text and connection.' #NEWLINE# data = { #NEWLINE# #INDENT# 'id' : '1112223333' , #NEWLINE# 'text' : 'hi there' , #NEWLINE# #UNINDENT# } #NEWLINE# form = KannelForm ( data , backend_name = 'kannel-backend' ) #NEWLINE# form . is_valid ( ) #NEWLINE# incoming_data = form . get_incoming_data ( ) #NEWLINE# self . assertEqual ( form [ 'text' ] , incoming_data [ 'text' ] ) #NEWLINE# self . assertEqual ( data [ 'id' ] , incoming_data [ 'connection' ] . identity ) #NEWLINE# self . assertEqual ( 'kannel-backend' , incoming_data [ 'connection' ] . backend . name )