Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
fix test assert for sender_screen_name
Browse files Browse the repository at this point in the history
  • Loading branch information
bear committed Sep 29, 2018
1 parent 4850fbc commit eb46879
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/test_direct_messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,13 @@ def test_get_sent_direct_messages():
assert isinstance(resp, list)
assert isinstance(direct_message, twitter.DirectMessage)
assert direct_message.id == 678629283007303683
assert [dm.sender_screen_name == 'notinourselves' for dm in resp]


@responses.activate
def test_post_direct_message():
with open('testdata/direct_messages/post_post_direct_message.json', 'r') as f:
responses.add(POST, DEFAULT_URL, body=f.read())
resp = api.PostDirectMessage(screen_name='TheGIFingBot',
resp = api.PostDirectMessage(user_id='372018022',
text='https://t.co/L4MIplKUwR')
assert isinstance(resp, twitter.DirectMessage)
assert resp.text == 'https://t.co/L4MIplKUwR'
Expand Down

0 comments on commit eb46879

Please sign in to comment.