user1 = self.api.get_user('TheTweepyTester')
self.assertFalse(self.api.cached_result)
- self.assertEquals('TheTweepyTester', user1.screen_name)
+ self.assertEqual('TheTweepyTester', user1.screen_name)
user2 = self.api.get_user('tweepytest')
- self.assertEquals('tweepytest', user2.screen_name)
+ self.assertEqual('tweepytest', user2.screen_name)
self.assertFalse(self.api.cached_result)
cursor = Cursor(self.api.user_timeline, id='twitter').items(5)
status = cursor.next()
- self.assertEquals(status.user.screen_name, 'twitter')
+ self.assertEqual(status.user.screen_name, 'twitter')
def test_sample(self):
self.listener.status_stop_count = 10
self.stream.sample()
- self.assertEquals(self.listener.status_count,
- self.listener.status_stop_count)
+ self.assertEqual(self.listener.status_count,
+ self.listener.status_stop_count)
def test_filter_track(self):
self.listener.status_stop_count = 5
phrases = ['twitter']
self.stream.filter(track=phrases)
- self.assertEquals(self.listener.status_count,
- self.listener.status_stop_count)
+ self.assertEqual(self.listener.status_count,
+ self.listener.status_stop_count)
def test_track_encoding(self):
s = Stream(None, None)