'user is not authenticated after a backend raises permission denied #2550'

@modify_settings(AUTHENTICATION_BACKENDS={'prepend': backend})
def test_permission_denied(self):

    self.assertIsNone(authenticate(username='test', password='test'))
    self.assertEqual(self.user_login_failed, [{'password': '********************', 'username': 'test'}])
