def test_temperature_unit():
    'Test temperature unit validation.'
    schema = vol.Schema(cv.temperature_unit)
    with pytest.raises(vol.MultipleInvalid):
        schema('K')
    schema('C')
    schema('F')
Test temperature unit validation.
def test_temperature_unit():
    
    schema = vol.Schema(cv.temperature_unit)
    with pytest.raises(vol.MultipleInvalid):
        schema('K')
    schema('C')
    schema('F')