def test_for_valid_service_id(): cases = [("valid-service-id", True), ("5-g5-0379-325", True), ("1234567890123456", True), ("VALID-service-id", True), ("invalid.service.id", False), ("invalid*service-id", False), ("", False), ("0123456789", True), ("012345678", False), ("01234567890123456789", True), ("012345678901234567890", False)] for example, expected in cases: assert_equal(is_valid_service_id(example), expected, example)
def test_for_valid_service_id(): cases = [ ("valid-service-id", True), ("5-g5-0379-325", True), ("1234567890123456", True), ("VALID-service-id", True), ("invalid.service.id", False), ("invalid*service-id", False), ("", False), ("0123456789", True), ("012345678", False), ("01234567890123456789", True), ("012345678901234567890", False) ] for example, expected in cases: assert_equal(is_valid_service_id(example), expected, example)