Example #1
0
 def test_score_input_test_score_valid(self):
     self.assertEqual({'test': 50}, scores.score_input('test', 50))
Example #2
0
 def test_score_input_test_name(self):
     self.assertEqual({'test': 0}, scores.score_input('test'))
Example #3
0
 def test_score_input_invalid_message(self):
     self.assertEqual(
         'This is a valid invalid message!',
         scores.score_input('test', 101,
                            'This is a valid invalid message!'))
Example #4
0
 def test_score_non_numeric(self):
     self.assertEqual('Invalid test score, try again!',
                      scores.score_input('test', 'cat'))
Example #5
0
 def test_score_input_test_score_above_range(self):
     self.assertEqual('Invalid test score, try again!',
                      scores.score_input('test', 101))
Example #6
0
 def test_score_input_test_score_below_range(self):
     self.assertEqual('Invalid test score, try again!',
                      scores.score_input('test', -1))