def test_hgt_without_value_is_invalid(): is_valid = validator.validate_hgt('cmd') assert is_valid == False
def test_hgt_cm_less_than_59_is_invalid(): is_valid = validator.validate_hgt('58in') assert is_valid == False
def test_hgt_without_unit_is_invalid(): is_valid = validator.validate_hgt('58') assert is_valid == False
def test_hgt_cm_greater_than_76_is_invalid(): is_valid = validator.validate_hgt('77in') assert is_valid == False
def test_hgt_in_greater_or_equals_to_76_is_valid(): is_valid = validator.validate_hgt('76in') assert is_valid == True
def test_hgt_cm_less_than_150_is_invalid(): is_valid = validator.validate_hgt('149cm') assert is_valid == False
def test_hgt_cm_greater_than_193_is_invalid(): is_valid = validator.validate_hgt('194cm') assert is_valid == False
def test_hgt_cm_greater_or_equals_to_150_is_valid(): is_valid = validator.validate_hgt('150cm') assert is_valid == True