示例#1
0
 def iter_fixture(
         self, slide_master_, _iter_rIds_, slide_layout_, slide_layout_2_):
     slide_master_.related_parts = {
         'rId1': slide_layout_, 'rId2': slide_layout_2_
     }
     slide_layouts = _SlideLayouts(slide_master_)
     return slide_layouts, slide_layout_, slide_layout_2_
 def iter_fixture(
         self, slide_master_, _iter_rIds_, slide_layout_, slide_layout_2_):
     slide_master_.related_parts = {
         'rId1': slide_layout_, 'rId2': slide_layout_2_
     }
     slide_layouts = _SlideLayouts(slide_master_)
     return slide_layouts, slide_layout_, slide_layout_2_
示例#3
0
 def getitem_fixture(self, slide_master, related_parts_, slide_layout_):
     slide_layouts = _SlideLayouts(slide_master)
     related_parts_.return_value = {'rId1': None, 'rId2': slide_layout_}
     idx = 1
     return slide_layouts, idx, slide_layout_
示例#4
0
 def len_fixture(self, slide_master_):
     slide_layouts = _SlideLayouts(slide_master_)
     slide_master_.sldLayoutIdLst = [1, 2]
     expected_count = 2
     return slide_layouts, expected_count
示例#5
0
 def iter_rIds_fixture(self, slide_master):
     slide_layouts = _SlideLayouts(slide_master)
     expected_rIds = ['rId1', 'rId2']
     return slide_layouts, expected_rIds
 def getitem_fixture(self, slide_master, related_parts_, slide_layout_):
     slide_layouts = _SlideLayouts(slide_master)
     related_parts_.return_value = {'rId1': None, 'rId2': slide_layout_}
     idx = 1
     return slide_layouts, idx, slide_layout_
 def len_fixture(self, slide_master_):
     slide_layouts = _SlideLayouts(slide_master_)
     slide_master_.sldLayoutIdLst = [1, 2]
     expected_count = 2
     return slide_layouts, expected_count
 def iter_rIds_fixture(self, slide_master):
     slide_layouts = _SlideLayouts(slide_master)
     expected_rIds = ['rId1', 'rId2']
     return slide_layouts, expected_rIds