#NEWLINE# def test_has_permission_download_not_prereg_challenge_admin( self ) : #NEWLINE# #INDENT# new_user = AuthUserFactory ( ) #NEWLINE# with assert_raises ( HTTPError ) as exc_info : #NEWLINE# #INDENT# views . check_access ( self . draft_registration . branched_from , Auth ( user = new_user ) , 'download' , None ) #NEWLINE# assert_equal ( exc_info . exception . code , http . FORBIDDEN )