# Path: shippo/api_requestor.py
# def _encode_datetime(dttime):
# def _api_encode(data):
# def _build_api_url(url, query):
#     def __init__(self, key=None, client=None):
#     def request(self, method, url, params=None):
#     def handle_api_error(self, rbody, rcode, resp):
#     def request_raw(self, method, url, params=None):
#     def interpret_response(self, rbody, rcode):
#     def _check_ssl_cert(self):
# class APIRequestor(object):
#     _CERTIFICATE_VERIFIED = False


from shippo import api_requestor
from mock import patch, Mock
from unittest2 import TestCase
import unittest2



class APIRequestorTests(TestCase):

    def test_oauth_token_auth(self):
        mock_client = Mock()
        mock_client.name = 'mock_client'
        mock_client.request.return_value = ('{"status": "ok"}', 200)


# Path: shippo/api_requestor.py
# def _encode_datetime(dttime):
# def _api_encode(data):
# def _build_api_url(url, query):
#     def __init__(self, key=None, client=None):
#     def request(self, method, url, params=None):
#     def handle_api_error(self, rbody, rcode, resp):
#     def request_raw(self, method, url, params=None):
#     def interpret_response(self, rbody, rcode):
#     def _check_ssl_cert(self):
# class APIRequestor(object):
#     _CERTIFICATE_VERIFIED = False


# Path: shippo/test/test_api_requestor.py
from shippo import api_requestor
from mock import patch, Mock
from unittest2 import TestCase
import unittest2




class APIRequestorTests(TestCase):

    def test_oauth_token_auth(self):
        mock_client = Mock()
        mock_client.name = 'mock_client'
        mock_client.request.return_value = ('{"status": "ok"}', 200)


        requestor = api_requestor.APIRequestor(