def test_time_zone():
 schema = vol.Schema(cv.time_zone)
 with pytest.raises(vol.MultipleInvalid):
  schema('America/Do_Not_Exist')
 schema('America/Los_Angeles')
 schema('UTC')

def test_time_zone ( ) : schema = vol . Schema ( cv . time_zone ) with pytest . raises ( vol . MultipleInvalid ) : schema ( 'America/Do_Not_Exist' ) schema ( 'America/Los_Angeles' ) schema ( 'UTC' )
test time zone validation .