From 661e8e0abfa4d8ebff930d4bcdb7bfc570a922fc Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Sat, 12 Oct 2019 19:56:48 +0200 Subject: Document and test own_votes --- tests/test_polls.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') diff --git a/tests/test_polls.py b/tests/test_polls.py index ca7335d..2187d31 100644 --- a/tests/test_polls.py +++ b/tests/test_polls.py @@ -10,10 +10,12 @@ def test_polls(api, api2): api.poll_vote(status_poll.poll, [1]) poll2 = api.poll(poll) assert poll2.votes_count == 1 + assert poll2.own_votes == [1] api.poll_vote(status_poll.poll, [0]) poll3 = api.poll(poll) assert poll3.votes_count == 2 + assert poll3.own_votes == [1, 0] api2.status_delete(status_poll) -- cgit v1.2.3