Skip to content

Commit

Permalink
Remove unnecessary list comps in userstream follow tests
Browse files Browse the repository at this point in the history
  • Loading branch information
justinvdm committed Mar 27, 2014
1 parent cd9a9e5 commit e3a31d4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions txtwitter/tests/test_fake_twitter.py
Expand Up @@ -1037,7 +1037,7 @@ def test_userstream_user_with_follows(self):

self.assertEqual(
messages,
[f for f in twitter.to_dicts(follow1, follow2, event='follow')])
twitter.to_dicts(follow1, follow2, event='follow'))

resp.finished()
self.assertEqual(twitter.streams, {})
Expand All @@ -1064,13 +1064,11 @@ def test_userstream_user_with_unfollows(self):

self.assertEqual(
messages,
[f for f in twitter.to_dicts(follow1, event='unfollow')])
twitter.to_dicts(follow1, event='unfollow'))

resp.finished()
self.assertEqual(twitter.streams, {})

# TODO: Replies

# TODO: More tests for fake userstream_user()

# Direct Messages
Expand Down

0 comments on commit e3a31d4

Please sign in to comment.