Exemplo n.º 1
0
 def voted(self):
     voted = Mock()
     voted.is_null_vote.return_value = False
     voted.ballot_number = BallotNumber(1, "test")
     return voted
Exemplo n.º 2
0
 def next_ballot(self):
     next_ballot = Mock()
     next_ballot.ballot_number = BallotNumber(2, "test")
     return next_ballot
Exemplo n.º 3
0
 def last_vote(self):
     last_vote = Mock()
     last_vote.ballot_number = BallotNumber(2, "test")
     return last_vote