fixing bad url shortner link
authorKenneth Reitz <me@kennethreitz.com>
Sun, 24 Jul 2011 01:48:28 +0000 (21:48 -0400)
committerKenneth Reitz <me@kennethreitz.com>
Sun, 24 Jul 2011 01:48:28 +0000 (21:48 -0400)
test_requests.py

index c3f3395daa096434f1725814a885d0e676212739..f23aa0711579be4ee77419a9bdd64685251aebee 100755 (executable)
@@ -9,7 +9,7 @@ import cookielib
 try:
     import omnijson as json
 except ImportError:
-    import simplejson as json
+    import json
 
 import requests
 
@@ -326,7 +326,7 @@ class RequestsTestSuite(unittest.TestCase):
 
     def test_idna(self):
         r = requests.get(u'http://➡.ws/httpbin')
-        self.assertEqual(r.url, HTTPBIN_URL)
+        assert 'tinyarrows.com' in r.url
 
 
 if __name__ == '__main__':