#NEWLINE# def test_view_submission_list_OtherUser( self ) : #NEWLINE# #INDENT# self . _publish_xml_form ( ) #NEWLINE# self . _make_submissions ( ) #NEWLINE# params = { #NEWLINE# #INDENT# 'formId' : self . xform . id_string , #NEWLINE# #UNINDENT# } #NEWLINE# self . _create_user ( 'deno' , 'deno' ) #NEWLINE# request = self . factory . get ( self . _submission_list_url , params ) #NEWLINE# response = view_submission_list ( request , self . user . username ) #NEWLINE# self . assertEqual ( response . status_code , 401 ) #NEWLINE# auth = DigestAuth ( 'deno' , 'deno' ) #NEWLINE# request . META . update ( auth ( request . META , response ) ) #NEWLINE# response = view_submission_list ( request , self . user . username ) #NEWLINE# self . assertEqual ( response . status_code , 403 )