Exemplo n.º 1
0
 def test_above_range_input(self):
     self.assertTrue(
         validate_input_in_function.score_input(
             "Invalid value, above the range"), 245)
Exemplo n.º 2
0
 def test_test_score_non_numeric(self):
     self.assertRaises(
         ValueError,
         validate_input_in_function.score_input("Non numeric", "b"))
Exemplo n.º 3
0
 def test_score_valid(self):
     self.assertTrue(validate_input_in_function.score_input("python", 7))
Exemplo n.º 4
0
 def test_score_below_range_input(self):
     self.assertTrue(
         validate_input_in_function.score_input(
             "Invalid value, below the range"), -1)