Skip to content

Commit

Permalink
Test: test d'hondt sin votos completo; EGCETSII#27
Browse files Browse the repository at this point in the history
  • Loading branch information
isamunval committed Jan 6, 2022
1 parent 4f211a0 commit 9b0c143
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions decide/postproc/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,4 +408,14 @@ def test_dhondt_noVotes(self):
{ "option": "Option 6", "number": 6, "votes": 0 },
]
}

expected_result = {
'message': 'No hay votos'
}

response = self.client.post("/postproc/", data, format="json")
self.assertEqual(response.status_code, 200)

values = response.json()
self.assertEqual(values, expected_result)

0 comments on commit 9b0c143

Please sign in to comment.