def check_bad_name(name):
    try:
        setting = soc.StringSetting(name)
    except soc.NamingError:
        pass
    else:
        assert False, ('Invalid name allowed: %s' % name)
def check_bad_name(name):
    try:
        setting = soc.StringSetting(name)
    except soc.NamingError:
        pass
    else:
        assert False, ('Invalid name allowed: %s' % name)