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)
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)
def slide(self): return Slide(None, None, None, None)
def shapes_fixture(self, SlideShapeTree_, slide_shape_tree_): slide = Slide(None, None, None, None) return slide, SlideShapeTree_, slide_shape_tree_
def placeholders_fixture(self, slide_elm_, _SlidePlaceholders_, slide_placeholders_): slide = Slide(None, None, slide_elm_, None) return slide, _SlidePlaceholders_, slide_placeholders_
def layout_fixture(self, slide_layout_, part_related_by_): slide = Slide(None, None, None, None) return slide, slide_layout_
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)
def slide(self, sld): return Slide(None, None, sld, None)