Esempio n. 1
0
 def it_can_create_a_new_slide(self, new_fixture):
     slide_layout_, partname_, package_ = new_fixture[:3]
     Slide_init_, slide_elm_, shapes_, relate_to_ = new_fixture[3:]
     slide = Slide.new(slide_layout_, partname_, package_)
     Slide_init_.assert_called_once_with(partname_, CT.PML_SLIDE,
                                         slide_elm_, package_)
     shapes_.clone_layout_placeholders.assert_called_once_with(
         slide_layout_)
     relate_to_.assert_called_once_with(slide_layout_, RT.SLIDE_LAYOUT)
     assert isinstance(slide, Slide)
Esempio n. 2
0
 def it_can_create_a_new_slide(self, new_fixture):
     slide_layout_, partname_, package_ = new_fixture[:3]
     Slide_init_, slide_elm_, shapes_, relate_to_ = new_fixture[3:]
     slide = Slide.new(slide_layout_, partname_, package_)
     Slide_init_.assert_called_once_with(
         partname_, CT.PML_SLIDE, slide_elm_, package_
     )
     shapes_.clone_layout_placeholders.assert_called_once_with(
         slide_layout_
     )
     relate_to_.assert_called_once_with(
         slide_layout_, RT.SLIDE_LAYOUT
     )
     assert isinstance(slide, Slide)
Esempio n. 3
0
 def slide(self):
     return Slide(None, None, None, None)
Esempio n. 4
0
 def shapes_fixture(self, SlideShapeTree_, slide_shape_tree_):
     slide = Slide(None, None, None, None)
     return slide, SlideShapeTree_, slide_shape_tree_
Esempio n. 5
0
 def placeholders_fixture(self, slide_elm_, _SlidePlaceholders_,
                          slide_placeholders_):
     slide = Slide(None, None, slide_elm_, None)
     return slide, _SlidePlaceholders_, slide_placeholders_
Esempio n. 6
0
 def layout_fixture(self, slide_layout_, part_related_by_):
     slide = Slide(None, None, None, None)
     return slide, slide_layout_
Esempio n. 7
0
 def add_chart_part_fixture(self, package_, chart_type_, chart_data_,
                            ChartPart_, chart_part_, rId, relate_to_):
     slide = Slide(None, None, None, package_)
     return (slide, chart_type_, chart_data_, ChartPart_, chart_part_,
             package_, rId)
Esempio n. 8
0
 def slide(self, sld):
     return Slide(None, None, sld, None)