Esempio n. 1
0
  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)
Esempio n. 2
0
 def set_field(nm, id):
   ff.set_field_at_site(field, nm, [id], [1, 2, 3])