@@ -0,0 +1,1576 @@
+# -*- coding: utf-8 -*-%0A%22%22%22%0A    Add comment here%0A    ~~~~~~~~~~~~~~~~%0A%0A    Add descripton here%0A%0A%0A    :copyright: (c) 2014 Shinya Ohyanagi, All rights reserved.%0A    :license: BSD, see LICENSE for more details.%0A%22%22%22%0Aimport os%0Aimport shutil%0Aimport requests%0Afrom unittest import TestCase%0Afrom unittest import skip%0Afrom autodoc import autodoc%0Afrom autodoc._compat import iteritems%0A%0A%0Aroot_path = os.path.dirname(os.path.abspath(__file__))%0Avar_path = os.path.join(root_path, 'var')%0A%0Aos.environ%5B'PYAUTODOC'%5D = '1'%0A%0A%0Aclass TestRequestsResponse(TestCase):%0A    def setUp(self):%0A        self.client = requests%0A%0A        self.root_path = root_path%0A        if os.path.exists(var_path):%0A            shutil.rmtree(var_path)%0A            os.mkdir(var_path)%0A%0A    # TODO Add mock%0A    @skip('Skip')%0A    def test_parse_response(self):%0A        %22%22%22 Should parse requests response. %22%22%22%0A        params = %7B'message': 'foo'%7D%0A        headers = %7B'content-type': 'application/json'%7D%0A        res = self.client.post('http://localhost:5000', data=params,%0A                               headers=headers)%0A        autodoc.parse('POST /', res)%0A%0A        var = %7B%0A            'describe': 'POST /',%0A            'describe_separators': '======',%0A            'target_url': 'http://localhost:5000/',%0A            'status_code': 200,%0A            'request': 'POST /',%0A            'response_body': '%7B%22response%22: %22create%22%7D',%0A            'response_content_type': 'application/json',%0A            'params': '%7B%5Cn  %22message%22: %22foo%22%5Cn%7D'%0A        %7D%0A        for k, v in iteritems(autodoc.vars%5B0%5D):%0A            self.assertEqual(v, var%5Bk%5D)%0A

Add requests test. But now skipping.