def test__blob_rewrites_sldIdLst(self):
     """Presentation._blob rewrites sldIdLst"""
     # setup ------------------------
     rels = RelationshipCollectionBuilder()
     rels = rels.with_tuple_targets(2, RT_SLIDE_MASTER)
     rels = rels.with_tuple_targets(3, RT_SLIDE)
     rels = rels.with_ordering(RT_SLIDE_MASTER, RT_SLIDE)
     rels = rels.build()
     prs = Presentation()
     prs._relationships = rels
     prs.partname = '/ppt/presentation.xml'
     path = os.path.join(thisdir, 'test_files/presentation.xml')
     prs._element = oxml_parse(path).getroot()
     # exercise ---------------------
     blob = prs._blob
     # verify -----------------------
     presentation = oxml_fromstring(blob)
     sldIds = presentation.xpath('./p:sldIdLst/p:sldId', namespaces=nsmap)
     expected = ['rId3', 'rId4', 'rId5']
     actual = [sldId.get(qtag('r:id')) for sldId in sldIds]
     msg = "expected ordering %s, got %s" % (expected, actual)
     self.assertEqual(expected, actual, msg)
def _sldLayout1():
    path = os.path.join(thisdir, 'test_files/slideLayout1.xml')
    sldLayout = oxml_parse(path).getroot()
    return sldLayout