Improve own_votes test

This commit is contained in:
Lorenz Diener 2019-10-12 19:57:14 +02:00
pare 661e8e0abf
commit b2bc879f44

Veure arxiu

@ -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