class_docstr: Test token authentication with logs
docstr: Test getting a token from username and password through the API
code: def test_get_token(self):
      "Test getting a token from username and password through the API"
      url = "/api-token-auth/"
      client = APIClient()
      auth = {"username": "john", "password": "banana"}
      token_request = client.post(url, data=auth, format="json")
      self.assertEqual(token_request.status_code, status.HTTP_200_OK)
      self.assertEqual(token_request.json()["token"], self.token.key)
  
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 2 for calling the TokenTests obj's underlying member method code with example usage: obj.test_get_token() without return types