def metadata_validate(self):
    (yield from super().metadata_validate())
    if (self.profile == 'fiscal-data-package'):
        (yield from super().metadata_validate(config.FISCAL_PACKAGE_PROFILE))
    for resource in self.resources:
        (yield from resource.metadata_errors)
def metadata_validate(self):
    (yield from super().metadata_validate())
    if (self.profile == 'fiscal-data-package'):
        (yield from super().metadata_validate(config.FISCAL_PACKAGE_PROFILE))
    for resource in self.resources:
        (yield from resource.metadata_errors)