From 7bd47777a941237036ba8e15a2aaf2e93cc8e467 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sat, 20 Aug 2011 19:40:33 -0400 Subject: [PATCH] no separate test suite --- test_unicode.py | 66 --------------------------------------------------------- 1 file changed, 66 deletions(-) delete mode 100644 test_unicode.py diff --git a/test_unicode.py b/test_unicode.py deleted file mode 100644 index 38a1dfc..0000000 --- a/test_unicode.py +++ /dev/null @@ -1,66 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- - -from __future__ import with_statement - -import unittest -import cookielib - -try: - import omnijson as json -except ImportError: - import json - -import requests - - - -HTTPBIN_URL = 'http://httpbin.org/' -HTTPSBIN_URL = 'https://httpbin.ep.io/' - -# HTTPBIN_URL = 'http://staging.httpbin.org/' -# HTTPSBIN_URL = 'https://httpbin-staging.ep.io/' - - -def httpbin(*suffix): - """Returns url for HTTPBIN resource.""" - - return HTTPBIN_URL + '/'.join(suffix) - - -def httpsbin(*suffix): - """Returns url for HTTPSBIN resource.""" - - return HTTPSBIN_URL + '/'.join(suffix) - - -SERVICES = (httpbin, httpsbin) - - - -class RequestsTestSuite(unittest.TestCase): - """Requests test cases.""" - - - def setUp(self): - pass - - - def tearDown(self): - """Teardown.""" - pass - - - def test_HTTP_200_OK_GET_ON_ISO88591(self): - r = requests.get("http://www.qypedeals.de/Verzehrgutschein+für+Jellyfish") - self.assertEqual(r.status_code, 200) - self.assertIsInstance(r.content, unicode) - - def test_HTTP_200_OK_GET_ON_BIG5(self): - r = requests.get("http://google.com.hk/") - self.assertEqual(r.status_code, 200) - self.assertIsInstance(r.content, unicode) - - -if __name__ == '__main__': - unittest.main() -- 2.7.4