From b2bc879f445604c422c2645e578e591acee5a5ed Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Sat, 12 Oct 2019 19:57:14 +0200 Subject: Improve own_votes test --- tests/test_polls.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_polls.py b/tests/test_polls.py index 2187d31..5f32526 100644 --- a/tests/test_polls.py +++ b/tests/test_polls.py @@ -6,7 +6,8 @@ def test_polls(api, api2): status_poll = api2.status_post("nice", poll=poll_params) poll = status_poll.poll assert poll.votes_count == 0 - + assert poll.own_votes == [] + api.poll_vote(status_poll.poll, [1]) poll2 = api.poll(poll) assert poll2.votes_count == 1 -- cgit v1.2.3