class_docstr: Test token authentication with logs
docstr: Test simple get http request with and without Token credential
code: def test_token_auth(self):
      "Test simple get http request with and without Token credential"
      client = APIClient()
      users_request = client.get("/api/users/", format="json")
      self.assertEqual(
          users_request.status_code, status.HTTP_401_UNAUTHORIZED
      )
      client.credentials(HTTP_AUTHORIZATION="Token " + self.token.key)
      users_request_auth = client.get("/api/users/", format="json")
      self.assertEqual(
          users_request_auth.status_code, status.HTTP_200_OK
      )
      data = users_request_auth.json()
      usernames = []
      for user in data:
          usernames.append(user["username"])
      self.assertIn(self.user.username, usernames)
  
file_path: TimeSide/timeside/server/tests/test_token.py
imports: from rest_framework import status
  from rest_framework.test import APITestCase
  from rest_framework.test import APIClient
  from rest_framework.authtoken.models import Token
  from django.contrib.auth.models import User
label_desc: Use image node_id 3 for calling the TokenTests obj's underlying member method code with example usage: obj.test_token_auth() without return types