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

full election working, yay.

parent c31182f4
No related branches found
No related tags found
No related merge requests found
...@@ -180,7 +180,13 @@ class DLogProof(LegacyObject): ...@@ -180,7 +180,13 @@ class DLogProof(LegacyObject):
super(DLogProof,self).__init__(wrapped_obj) super(DLogProof,self).__init__(wrapped_obj)
class Result(LegacyObject): class Result(LegacyObject):
pass WRAPPED_OBJ = list
def loadDataFromDict(self, d):
self.wrapped_obj = d
def toDict(self, complete=False):
return self.wrapped_obj
class Questions(LegacyObject): class Questions(LegacyObject):
WRAPPED_OBJ = list WRAPPED_OBJ = list
......
...@@ -474,4 +474,4 @@ class ElectionBlackboxTests(TestCase): ...@@ -474,4 +474,4 @@ class ElectionBlackboxTests(TestCase):
# check that tally matches # check that tally matches
response = self.client.get("/helios/elections/%s/result" % election_id) response = self.client.get("/helios/elections/%s/result" % election_id)
self.assertEquals(utils.from_json(response.content), [0,1]) self.assertEquals(utils.from_json(response.content), [[0,1]])
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment