Get parameters from Requests session
authorAaron Hill <aa1ronham@gmail.com>
Sat, 22 Feb 2014 04:13:36 +0000 (23:13 -0500)
committerAaron Hill <aa1ronham@gmail.com>
Sun, 27 Apr 2014 02:03:11 +0000 (22:03 -0400)
tests/test_streaming.py

index dad4229bccf3400a0b3c2a90b44d8334bf249e2c..f9008bcf1c5874577d5bd3c3590389f2e83b7b12 100644 (file)
@@ -84,7 +84,7 @@ class TweepyStreamTests(unittest.TestCase):
         s.filter(track=[u'Caf\xe9'])
 
         # Should be UTF-8 encoded
-        self.assertEqual(u'Caf\xe9'.encode('utf8'), s.parameters['track'])
+        self.assertEqual(u'Caf\xe9'.encode('utf8'), s.session.params['track'])
 
     def test_follow_encoding(self):
         s = Stream(None, None)
@@ -92,7 +92,7 @@ class TweepyStreamTests(unittest.TestCase):
         s.filter(follow=[u'Caf\xe9'])
 
         # Should be UTF-8 encoded
-        self.assertEqual(u'Caf\xe9'.encode('utf8'), s.parameters['follow'])
+        self.assertEqual(u'Caf\xe9'.encode('utf8'), s.session.params['follow'])
 
 class TweepyStreamBackoffTests(unittest.TestCase):
     def setUp(self):