#NEWLINE# def test_fail_authenticated_submissions_to_wrong_account( self ) : #NEWLINE# #INDENT# username = 'dennis' #NEWLINE# self . _set_require_auth ( ) #NEWLINE# self . _create_user_and_login ( username = username , password = username ) #NEWLINE# self . _set_require_auth ( ) #NEWLINE# s = self . surveys [ 0 ] #NEWLINE# xml_submission_file_path = os . path . join ( self . this_directory , 'fixtures' , 'transportation' , 'instances' , s , ( s + '.xml' ) ) #NEWLINE# self . _make_submission ( xml_submission_file_path , add_uuid = True , auth = DigestAuth ( 'alice' , 'alice' ) ) #NEWLINE# self . assertEqual ( self . response . status_code , 401 ) #NEWLINE# auth = DigestAuth ( 'dennis' , 'dennis' ) #NEWLINE# self . _make_submission ( xml_submission_file_path , add_uuid = True , auth = auth ) #NEWLINE# self . assertEqual ( self . response . status_code , 403 )