#NEWLINE# def test_load_session_data_for_mobile_worker( self ) : #NEWLINE# #INDENT# user = CommCareUser ( domain = 'cloudcare-tests' , username = 'worker@cloudcare-tests.commcarehq.org' , _id = uuid . uuid4 ( ) . hex ) #NEWLINE# data = get_user_contributions_to_touchforms_session ( user ) #NEWLINE# self . assertEqual ( 'worker' , data [ 'username' ] ) #NEWLINE# self . assertEqual ( user . _id , data [ 'user_id' ] ) #NEWLINE# self . assertTrue ( isinstance ( self [ 'user_data' ] , dict ) )