def send_section_advocate(session, section_file, section_item, advocate_id): section_json = load_json(section_file) section_item = SectionLoader(section_json, item=section_item).load_advocate_owner(advocate_id) section_item.send(session) return section_item
def check_load_section_data(self, testfile, item): section = load_json(testfile) loader = SectionLoader(section) loader.load_section_data(13186, 0) result = dict(loader.load_advocate_owner(19936)) check_arguments(item, result)
def send_section(session, section_file, argument_id, number): section_json = load_json(section_file) section_item = SectionLoader(section_json).load_section_data(argument_id, number) section_item.send(session) return section_item