def testunsupportedpagebreak():
 document = newdocument()
 docbody = document.xpath('/w:document/w:body', namespaces=nsprefixes)[0]
 try:
  docbody.append(pagebreak(type='unsup'))
 except ValueError:
  return
 assert False

def testunsupportedpagebreak ( ) : document = newdocument ( ) docbody = document . xpath ( '/w:document/w:body' , namespaces = nsprefixes ) [ 0 ] try : docbody . append ( pagebreak ( type = 'unsup' ) ) except ValueError : return assert False
ensure unsupported page break types are trapped .