def testunsupportedpagebreak():
    """Ensure unsupported page break types are trapped"""
    document = newdocument()
    docbody = document.xpath('/w:document/w:body', namespaces=nsprefixes)[0]
    try:
        docbody.append(pagebreak(type='unsup'))
    except __HOLE__:
        return  # passed
    assert False  # failed
dataset/ETHPy150Open mikemaccana/python-docx/tests/test_docx.py/testunsupportedpagebreak