def check_failure(nm, id): try: ff.set_field_at_site(field, nm, [id], [1, 2, 3]) except: return assert False, "set_field_at_site was successful when setting a field " \ "(%s) at a site (%d) where it shouldn't be defined!" \ % (nm, id)
def set_field(nm, id): ff.set_field_at_site(field, nm, [id], [1, 2, 3])