def test_latitude():
    'Test latitude validation.'
    schema = vol.Schema(cv.latitude)
    for value in ('invalid', None, (- 91), 91, '-91', '91', '123.01A'):
        with pytest.raises(vol.MultipleInvalid):
            schema(value)
    for value in ('-89', 89, '12.34'):
        schema(value)
Test latitude validation.
def test_latitude():
    
    schema = vol.Schema(cv.latitude)
    for value in ('invalid', None, (- 91), 91, '-91', '91', '123.01A'):
        with pytest.raises(vol.MultipleInvalid):
            schema(value)
    for value in ('-89', 89, '12.34'):
        schema(value)