def METHOD_NAME(self):
    user, created = User.objects.get_or_create(username="temp")
    temp_token, created = TempToken.objects.get_or_create(user=user)
    user.is_active = False
    user.save()
    self.assertRaisesMessage(
        AuthenticationFailed,
        "User inactive or deleted",
        self.temp_token_authentication.authenticate_credentials,
        temp_token.key,
    )