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)

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 )
test latitude validation .