

def it_can_build_rels_element_incrementally(self):
    rels = CT_Relationships.new()
    self.add_rel('rId1', 'http://reltype1', 'docProps/core.xml')
    rels.add_rel('rId2', 'http://linktype', 'http://some/link', True)
    rels.add_rel('rId3', 'http://reltype2', '../slides/slide1.xml')
    expected_rels_xml = a_Relationships().xml
    assert (serialize_for_reading(rels) == expected_rels_xml)

dataset/ETHPy150Open python-openxml/python-docx/tests/opc/test_oxml.py DescribeCT_Relationships.it_can_build_rels_element_incrementally/VarMisuse@18/31 `rels`->`self`