#NEWLINE# def test_check_active_false( self ) : #NEWLINE# #INDENT# auth = DigestAuthentication ( require_active = False ) #NEWLINE# request = HttpRequest ( ) #NEWLINE# bob_doe = User . objects . get ( username = 'bobdoe' ) #NEWLINE# create_api_key ( User , instance = bob_doe , created = True ) #NEWLINE# auth_request = auth . is_authenticated ( request ) #NEWLINE# request . META [ 'HTTP_AUTHORIZATION' ] = python_digest . build_authorization_request ( bob_doe . username , request . method , '/' , 1 , digest_challenge = auth_request [ 'WWW-Authenticate' ] , password = bob_doe . api_key . key ) #NEWLINE# auth_request = auth . is_authenticated ( request ) #NEWLINE# self . assertTrue ( auth_request , True )