aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLorenz Diener <[email protected]>2019-10-12 19:56:48 +0200
committerLorenz Diener <[email protected]>2019-10-12 19:56:48 +0200
commit661e8e0abfa4d8ebff930d4bcdb7bfc570a922fc (patch)
treef7159681ae90c0497a3ed8db8fedfd11ae326313 /tests
parentfc5e793cde11b17e457b873cd3fc1b09c293f795 (diff)
downloadmastodon.py-661e8e0abfa4d8ebff930d4bcdb7bfc570a922fc.tar.gz
Document and test own_votes
Diffstat (limited to 'tests')
-rw-r--r--tests/test_polls.py2
1 files changed, 2 insertions, 0 deletions
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):
10 api.poll_vote(status_poll.poll, [1]) 10 api.poll_vote(status_poll.poll, [1])
11 poll2 = api.poll(poll) 11 poll2 = api.poll(poll)
12 assert poll2.votes_count == 1 12 assert poll2.votes_count == 1
13 assert poll2.own_votes == [1]
13 14
14 api.poll_vote(status_poll.poll, [0]) 15 api.poll_vote(status_poll.poll, [0])
15 poll3 = api.poll(poll) 16 poll3 = api.poll(poll)
16 assert poll3.votes_count == 2 17 assert poll3.votes_count == 2
18 assert poll3.own_votes == [1, 0]
17 19
18 api2.status_delete(status_poll) 20 api2.status_delete(status_poll)
19 21
Powered by cgit v1.2.3 (git 2.41.0)