def test_x10_address():
 schema = vol.Schema(cv.x10_address)
 with pytest.raises(vol.Invalid):
  schema('Q1')
  schema('q55')
  schema('garbage_addr')
 schema('a1')
 schema('C11')

def test_x10_address ( ) : schema = vol . Schema ( cv . x10_address ) with pytest . raises ( vol . Invalid ) : schema ( 'Q1' ) schema ( 'q55' ) schema ( 'garbage_addr' ) schema ( 'a1' ) schema ( 'C11' )
test x10 addr validator .