Пример #1
0
 def test_api_ballot_get_decisions_by_contest(self):
     """test get decisions by contest assumes the contest id returned by get_contest_id has some decisions """
     response = api.ballot_get_decisions_by_contest(self.get_contest_id())
     print(response)
     self.assertTrue(len(response) > 0)
Пример #2
0
 def _get_real_contest_decisions(contest):
     decisions = []
     results = api.ballot_get_decisions_by_contest(contest.id)
     if results:
         decisions = [Decision(contest, d) for d in results]
     return decisions
Пример #3
0
 def _get_real_contest_decisions(contest):
     decisions = []
     results = api.ballot_get_decisions_by_contest(contest.id)
     if results:
         decisions = [Decision(contest, d) for d in results]
     return decisions