Example #1
0
 def test_negative_one(self):
     score = -100
     result = round(annotator.winning_chances(score))
     self.assertEqual(result, 40)
Example #2
0
 def test_four(self):
     score = 400
     result = round(annotator.winning_chances(score))
     self.assertEqual(result, 83)
Example #3
0
 def test_zero(self):
     score = 0
     result = round(annotator.winning_chances(score))
     self.assertEqual(result, 50)
Example #4
0
 def test_one(self):
     score = 100
     result = round(annotator.winning_chances(score))
     self.assertEqual(result, 60)
Example #5
0
 def test_negative_four(self):
     score = -400
     result = round(annotator.winning_chances(score))
     self.assertEqual(result, 17)