def METHOD_NAME(self):
    response = self.client.post(
        self.url,
        {
            'username': 'admin',
            'password': 'adminadmin'
        },
    )
    result = response.data
    self.assertEqual(response.status_code, status.HTTP_200_OK)
    self.assertEqual(result, {'token': 'apikey-admin'})