def test_x10_address():
    'Test x10 addr validator.'
    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.
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')