diff options
Diffstat (limited to 'tests/test_timeline.py')
-rw-r--r-- | tests/test_timeline.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test_timeline.py b/tests/test_timeline.py index 3a75029..93ac8de 100644 --- a/tests/test_timeline.py +++ b/tests/test_timeline.py | |||
@@ -50,8 +50,12 @@ def test_conversations(api, api2): | |||
50 | status = api.status_post("@admin ilu bby ;3", visibility="direct") | 50 | status = api.status_post("@admin ilu bby ;3", visibility="direct") |
51 | time.sleep(2) | 51 | time.sleep(2) |
52 | conversations = api2.conversations() | 52 | conversations = api2.conversations() |
53 | api2.conversations_read(conversations[0]) | ||
54 | time.sleep(2) | ||
55 | conversations2 = api2.conversations() | ||
53 | api.status_delete(status) | 56 | api.status_delete(status) |
54 | assert conversations | 57 | assert conversations |
55 | assert status.id in map(lambda x: x.last_status.id, conversations) | 58 | assert status.id in map(lambda x: x.last_status.id, conversations) |
56 | assert account.id in map(lambda x: x.accounts[0].id, conversations) | 59 | assert account.id in map(lambda x: x.accounts[0].id, conversations) |
57 | 60 | assert conversations[0].unread == True | |
61 | assert conversations2[0].unread == False | ||