Example #1
0
 def getitem_fixture(self, request, SlideShapeFactory_, placeholder_):
     spTree_cxml, idx, offset = request.param
     spTree = element(spTree_cxml)
     placeholders = _SlidePlaceholders(spTree, None)
     shape_elm = spTree[offset]
     SlideShapeFactory_.return_value = placeholder_
     return placeholders, idx, SlideShapeFactory_, shape_elm, placeholder_
Example #2
0
 def getitem_fixture(self, request, SlideShapeFactory_, placeholder_):
     spTree_cxml, idx, offset = request.param
     spTree = element(spTree_cxml)
     placeholders = _SlidePlaceholders(spTree, None)
     shape_elm = spTree[offset]
     SlideShapeFactory_.return_value = placeholder_
     return placeholders, idx, SlideShapeFactory_, shape_elm, placeholder_
Example #3
0
 def iter_fixture(self, request, SlideShapeFactory_, placeholder_):
     spTree_cxml, sequence = request.param
     spTree = element(spTree_cxml)
     placeholders = _SlidePlaceholders(spTree, None)
     SlideShapeFactory_.return_value = placeholder_
     calls = [call(spTree[i], placeholders) for i in sequence]
     values = [placeholder_] * len(sequence)
     return placeholders, SlideShapeFactory_, calls, values
Example #4
0
 def iter_fixture(self, request, SlideShapeFactory_, placeholder_):
     spTree_cxml, sequence = request.param
     spTree = element(spTree_cxml)
     placeholders = _SlidePlaceholders(spTree, None)
     SlideShapeFactory_.return_value = placeholder_
     calls = [call(spTree[i], placeholders) for i in sequence]
     values = [placeholder_] * len(sequence)
     return placeholders, SlideShapeFactory_, calls, values
Example #5
0
 def placeholders(self):
     """
 Instance of |_SlidePlaceholders| containing sequence of placeholder
 shapes in this slide.
 """
     return _SlidePlaceholders(self)
Example #6
0
 def placeholders(self):
   """
   Instance of |_SlidePlaceholders| containing sequence of placeholder
   shapes in this slide.
   """
   return _SlidePlaceholders(self)
Example #7
0
 def len_fixture(self, request):
     spTree_cxml, length = request.param
     placeholders = _SlidePlaceholders(element(spTree_cxml), None)
     return placeholders, length
Example #8
0
 def len_fixture(self, request):
     spTree_cxml, length = request.param
     placeholders = _SlidePlaceholders(element(spTree_cxml), None)
     return placeholders, length