Exemplo n.º 1
0
 def name_fixture(self):
     sld_cxml, expected_value = 'p:sld/p:cSld{name=Foobar}', 'Foobar'
     sld = element(sld_cxml)
     base_slide = BaseSlide(None, None, sld, None)
     return base_slide, expected_value
Exemplo n.º 2
0
 def image_part_fixture(self, partname_, package_, image_part_, relate_to_):
     slide = BaseSlide(partname_, None, None, package_)
     image_file, rId = 'foobar.png', 'rId6'
     package_.get_or_add_image_part.return_value = image_part_
     relate_to_.return_value = rId
     return slide, image_file, image_part_, rId
Exemplo n.º 3
0
 def get_image_fixture(self, related_parts_prop_, image_part_, image_):
     slide = BaseSlide(None, None, None, None)
     rId = 'rId42'
     related_parts_prop_.return_value = {rId: image_part_}
     image_part_.image = image_
     return slide, rId, image_
Exemplo n.º 4
0
 def slide(self):
     sld = element('p:sld/p:cSld/p:spTree')
     return BaseSlide(None, None, sld, None)
Exemplo n.º 5
0
 def base_slide(self):
     partname = PackURI('/foo/bar.xml')
     return BaseSlide(partname, None, None, None)
Exemplo n.º 6
0
 def slide(self, sld):
     return BaseSlide(None, None, sld, None)