Пример #1
0
 def test_tie_race_winner_flags(self):
     "Winner flag should not be assigned to any candidate in a tie race"
     results = summarize(self.SAMPLE_RESULTS)
     race = results["President"]
     for cand in race["candidates"]:
         self.assertEqual(cand["winner"], "")
Пример #2
0
 def setUp(self):
     results = summarize(self.SAMPLE_RESULTS)
     self.race = results["President"]
Пример #3
0
 def setUp(self):
     results = summarize(self.SAMPLE_RESULTS)
     self.race = results['President']
Пример #4
0
 def test_tie_race_winner_flags(self):
     "Winner flag should not be assigned to any candidate in a tie race"
     results = summarize(self.SAMPLE_RESULTS)
     race = results['President']
     for cand in race['candidates']:
         self.assertEqual(cand['winner'], '')
Пример #5
0
 def test_tie_race_winner_flags(self):
     "Winner flag should not be assigned to any candidate in a tie race"
     results = summarize(self.SAMPLE_RESULTS)
     race = results['President']
     for cand in race['candidates']:
         self.assertEqual(cand['winner'], '')