

def it_can_build_types_element_incrementally(self):
    types = CT_Types.new()
    types.add_default('xml', 'application/xml')
    types.add_default('jpeg', 'image/jpeg')
    types.add_override('/docProps/core.xml', 'app/vnd.type1')
    types.add_override('/ppt/presentation.xml', 'app/vnd.type2')
    types.add_override('/docProps/thumbnail.jpeg', 'image/jpeg')
    expected_types_xml = a_Types().xml
    assert (types.xml == expected_types_xml)

dataset/ETHPy150Open python-openxml/python-docx/tests/opc/test_oxml.py DescribeCT_Types.it_can_build_types_element_incrementally/original