#NEWLINE# def test_check_active_false( self ) : #NEWLINE# #INDENT# auth = BasicAuthentication ( require_active = False ) #NEWLINE# request = HttpRequest ( ) #NEWLINE# bob_doe = User . objects . get ( username = 'bobdoe' ) #NEWLINE# bob_doe . set_password ( 'pass' ) #NEWLINE# bob_doe . save ( ) #NEWLINE# request . META [ 'HTTP_AUTHORIZATION' ] = ( 'Basic %s' % base64 . b64encode ( 'bobdoe:pass' ) ) #NEWLINE# self . assertTrue ( auth . is_authenticated ( auth ) )