Exemplo n.º 1
0
 def test_voting_allowed_with_future_election(self):
     election_future = Election(
         vote_start=datetime(2010, 10, 11),
         vote_end=datetime(2010, 10, 17))
     self.assertFalse(election_future.voting_allowed())
Exemplo n.º 2
0
 def test_voting_allowed_with_finished_election(self):
     election_finished = Election(
         vote_start=datetime(2010, 10, 1),
         vote_end=datetime(2010, 10, 9))
     self.assertFalse(election_finished.voting_allowed())