def it_creates_a_new_notes_master_part_to_help( self, request, package_, notes_master_part_ ): NotesMasterPart_ = class_mock( request, "pptx.parts.slide.NotesMasterPart", return_value=notes_master_part_ ) notesMaster = element("p:notesMaster") method_mock( request, CT_NotesMaster, "new_default", autospec=False, return_value=notesMaster, ) notes_master_part = NotesMasterPart._new(package_) CT_NotesMaster.new_default.assert_called_once_with() NotesMasterPart_.assert_called_once_with( PackURI("/ppt/notesMasters/notesMaster1.xml"), CT.PML_NOTES_MASTER, package_, notesMaster, ) assert notes_master_part is notes_master_part_
def it_creates_a_new_notes_master_part_to_help(self, new_fixture): package_, NotesMasterPart_, partname = new_fixture[:3] notesMaster_, notes_master_part_ = new_fixture[3:] notes_master_part = NotesMasterPart._new(package_) CT_NotesMaster.new_default.assert_called_once_with() NotesMasterPart_.assert_called_once_with(partname, CT.PML_NOTES_MASTER, notesMaster_, package_) assert notes_master_part is notes_master_part_
def it_creates_a_new_notes_master_part_to_help(self, new_fixture): package_, NotesMasterPart_, partname = new_fixture[:3] notesMaster_, notes_master_part_ = new_fixture[3:] notes_master_part = NotesMasterPart._new(package_) CT_NotesMaster.new_default.assert_called_once_with() NotesMasterPart_.assert_called_once_with( partname, CT.PML_NOTES_MASTER, notesMaster_, package_ ) assert notes_master_part is notes_master_part_