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