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