# -*- coding: utf-8 -*-

"""
    cvnqplyobj

    This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
"""

import jsonpickle
import dateutil.parser
from .controller_test_base import ControllerTestBase
from ..test_helper import TestHelper
from cvnqplyobj.api_helper import APIHelper


class APIControllerTests(ControllerTestBase):

    @classmethod
    def setUpClass(cls):
        super(APIControllerTests, cls).setUpClass()
        cls.controller = cls.api_client.client

    # Todo: Add description for test test_basic_auth_test
    def test_basic_auth_test(self):

        # Perform the API call through the SDK function
        result = self.controller.get_basic_auth_test()

        # Test response code
        self.assertEquals(self.response_catcher.response.status_code, 200)
        
        # Test whether the captured response is as we expected
        self.assertIsNotNone(result)
        self.assertEqual('You\'ve passed the test!', self.response_catcher.response.raw_body)


