Skip to content
Snippets Groups Projects
Commit f5ed804c authored by Ben Adida's avatar Ben Adida
Browse files

added ballot list legacy testing to tests

parent 5fd7fb18
No related branches found
No related tags found
No related merge requests found
[{"cast_at": "2010-12-30 11:00:30", "vote_hash": "XMbs8mj8IMfWTIrMeeJ+1ItRtH1fMzrrdasdoZghqms", "voter_hash": "/SnejZYob4Xvxv4gqsvj/ciEouUrrlZPpLTEYWnmgPg", "voter_uuid": "36cab4d2-baf5-4fe6-9316-072bb10a08c5"}]
\ No newline at end of file
......@@ -222,6 +222,7 @@ class LegacyElectionBlackboxTests(TestCase):
EXPECTED_ELECTION_FILE = 'helios/fixtures/legacy-election-expected.json'
EXPECTED_VOTERS_FILE = 'helios/fixtures/legacy-election-voters-expected.json'
EXPECTED_TRUSTEES_FILE = 'helios/fixtures/legacy-trustees-expected.json'
EXPECTED_BALLOTS_FILE = 'helios/fixtures/legacy-ballots-expected.json'
def setUp(self):
self.election = models.Election.objects.all()[0]
......@@ -243,6 +244,10 @@ class LegacyElectionBlackboxTests(TestCase):
response = self.client.get("/helios/elections/%s/trustees/" % self.election.uuid, follow=False)
self.assertEqualsToFile(response, self.EXPECTED_TRUSTEES_FILE)
def test_ballots_list(self):
response = self.client.get("/helios/elections/%s/ballots/" % self.election.uuid, follow=False)
self.assertEqualsToFile(response, self.EXPECTED_BALLOTS_FILE)
class ElectionBlackboxTests(TestCase):
fixtures = ['users.json', 'election.json']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment