def test_time_zone():
    'Test time zone validation.'
    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.
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')