Ejemplo n.º 1
0
 def iter_fixture(self, part_prop_):
     sldMasterIdLst = element(
         "p:sldMasterIdLst/(p:sldMasterId{r:id=a},p:sldMasterId{r:id=b})")
     slide_masters = SlideMasters(sldMasterIdLst, None)
     related_slide_master_ = part_prop_.return_value.related_slide_master
     calls = [call("a"), call("b")]
     _slide_masters = [
         SlideMaster(element("p:sldMaster"), None),
         SlideMaster(element("p:sldMaster"), None),
     ]
     related_slide_master_.side_effect = _slide_masters
     return slide_masters, related_slide_master_, calls, _slide_masters
Ejemplo n.º 2
0
 def getitem_fixture(self, part_, slide_master_, part_prop_):
     slide_masters = SlideMasters(
         element("p:sldMasterIdLst/p:sldMasterId{r:id=rId1}"), None)
     part_.related_slide_master.return_value = slide_master_
     return slide_masters, part_, slide_master_, "rId1"
Ejemplo n.º 3
0
 def len_fixture(self, request):
     sldMasterIdLst_cxml, expected_value = request.param
     slide_masters = SlideMasters(element(sldMasterIdLst_cxml), None)
     return slide_masters, expected_value
Ejemplo n.º 4
0
 def getitem_raises_fixture(self, part_prop_):
     return SlideMasters(
         element("p:sldMasterIdLst/p:sldMasterId{r:id=rId1}"), None)
Ejemplo n.º 5
0
 def slide_masters(self):
     """
     Sequence of |SlideMaster| objects belonging to this presentation
     """
     return SlideMasters(self._element.get_or_add_sldMasterIdLst(), self)