thousandeyes-sdk-python/oauth2/test/test_access_token.py

55 lines
1.7 KiB
Python

# coding: utf-8
"""
OAuth2 API
This endpoint allows clients to trade their client credentials for an Access Token that can be used on subsequent calls to our API. Example of usage: ` curl -X POST -H \"Content-Type: application/x-www-form-urlencoded\" -d 'client_id=someId&scope=someScope&client_secret=someSecret&grant_type=client_credentials' 'https://api.thousandeyes.com/v7/oauth2/token' `
The version of the OpenAPI document: 7.0.2
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from oauth2.models.access_token import AccessToken
class TestAccessToken(unittest.TestCase):
"""AccessToken unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> AccessToken:
"""Test AccessToken
include_option is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `AccessToken`
"""
model = AccessToken()
if include_optional:
return AccessToken(
token_type = '',
expires_in = 56,
access_token = '',
scope = ''
)
else:
return AccessToken(
)
"""
def testAccessToken(self):
"""Test AccessToken"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()