@@ -0,0 +1,2294 @@
+#!/usr/bin/env python%0A# -*- coding: utf-8 -*-%0Aimport unittest%0Aimport mock%0Aimport sys%0Aimport os%0Asys.path.append(os.getcwd())%0A%0Atry:%0A    import omnijson as json%0Aexcept ImportError:%0A    import json%0A%0Aimport requests%0Afrom requests.models import Response%0A%0Aclass RequestsAPIUnitTests(unittest.TestCase):%0A    %22%22%22Requests API unit test cases.%22%22%22%0A%0A    def setUp(self):%0A        pass%0A%0A%0A    def tearDown(self):%0A        %22%22%22Teardown.%22%22%22%0A        pass%0A%0A%0A    @mock.patch('requests.api.request')%0A    def test_http_get(self, mock_request):%0A        mock_request.return_value = Response()%0A        requests.get('http://google.com')%0A        mock_request.assert_called_once_with('get', 'http://google.com',%0A                                             allow_redirects= True)%0A%0A    @mock.patch('requests.api.request')%0A    def test_http_head(self, mock_request):%0A        mock_request.return_value = Response()%0A        requests.head('http://google.com')%0A        mock_request.assert_called_once_with('head', 'http://google.com',%0A                                             allow_redirects= True)%0A%0A    @mock.patch('requests.api.request')%0A    def test_http_post(self, mock_request):%0A        mock_request.return_value = Response()%0A        requests.post('http://google.com', %7B%7D)%0A        mock_request.assert_called_once_with('post', 'http://google.com',%0A                                              data= %7B%7D)%0A%0A    @mock.patch('requests.api.request')%0A    def test_http_put(self, mock_request):%0A        mock_request.return_value = Response()%0A        requests.put('http://google.com', %7B%7D)%0A        mock_request.assert_called_once_with('put', 'http://google.com',%0A                                             data= %7B%7D)%0A%0A    @mock.patch('requests.api.request')%0A    def test_http_patch(self, mock_request):%0A        mock_request.return_value = Response()%0A        requests.patch('http://google.com', %7B%7D)%0A        mock_request.assert_called_once_with('patch', 'http://google.com',%0A                                             data= %7B%7D)%0A%0A    @mock.patch('requests.api.request')%0A    def test_http_delete(self, mock_request):%0A        mock_request.return_value = Response()%0A        requests.delete('http://google.com')%0A        mock_request.assert_called_once_with('delete', 'http://google.com')%0A%0Aif __name__ == '__main__':%0A    unittest.main()%0A

add basic unit tests for requests.api