def test_check_length_valid_string_expected_True(self): string = "Course Work" actual = Validator.check_length(string, 3, 20) expected = True self.assertEqual(actual, expected)
def test_check_length_string_is_empty_expected_False(self): string = "" actual = Validator.check_length(string, 3, 18) expected = False self.assertEqual(actual, expected)
def test_check_length(self, input_string, min, max, expected): actual = Validator.check_length(input_string, min, max) self.assertEqual(actual, expected)