def has_required_sections(self):
rq_sections = [a_section for a_section in self.required_params
if not a_section.startswith("endpoint ")]
has_sections = reduce(and_, [a_section in self.items.sections()
for a_section in rq_sections])
return has_sections
评论列表
文章目录