def test_no_ssl_required_insecure_request_succeeds(self):
    self.initialize(scope_names=['verify'])
    settings.DJOAUTH2_SSL_ONLY = False

    access_token = self.create_access_token(self.user, self.client)

    api_request = self.oauth_client.make_api_request(
        access_token, {}, use_ssl=False)

    api_endpoint = make_oauth_protected_endpoint('verify')

    response = api_endpoint(api_request)
    self.assertIs(response, True, response)
Test for `import telnetlib` and Telnet.* calls.
dataset/ETHPy150Open Locu/djoauth2/djoauth2/tests/test_endpoint.py/TestOAuthScopeEndpointDecorator.test_no_ssl_required_insecure_request_succeeds--crossover with--dataset/ETHPy150Open openstack/bandit/tests/functional/test_functional.py/FunctionalTests.test_telnet_usage