(self)
confirms that resource slugs provided are for the expected version by checking for its name to end with
        v[version number] like v15 for version 15.
confirms that resource slugs provided are for the expected version by checking for its name to end with
        v[version number] like v15 for version 15.
confirms that resource slugs provided are for the expected version by checking for its name to end with v [ version number ] like v15 for version 15 .
def _ensure_resources_belong_to_version(self):
        """
        confirms that resource slugs provided are for the expected version by checking for its name to end with
        v[version number] like v15 for version 15.
        """
        for resource_slug in self.resource_slugs:
            if not resource_slug.endswith("v%s" % self.version):
                raise Exception("Resource name '{}' is expected to contain version".format(
                    resource_slug
                ))
def _ensure_resources_belong_to_version ( self ) : for resource_slug in self . resource_slugs : if not resource_slug . endswith ( "v%s" % self . version ) : raise Exception ( "Resource name '{}' is expected to contain version" . format ( resource_slug ) )