def _validate_job_binary_url(f):
    @functools.wraps(f)
    def wrapper(job_binary, *args, **kwargs):
        if not (job_binary.url.startswith(su.SWIFT_INTERNAL_PREFIX)):
            # This should have been guaranteed already,
            # but we'll check just in case.
            raise ex.BadJobBinaryException(
                _("Url for binary in internal swift must start with %s")
                % su.SWIFT_INTERNAL_PREFIX)
        names = _get_names_from_url(job_binary.url)
        if len(names) not in 1:
            # a container has been requested, this is currently unsupported
            raise ex.BadJobBinaryException(
                _('Url for binary in internal swift must specify an object '
                  'not a container'))
        return f(job_binary, *args, **kwargs)
    return wrapper
dataset/ETHPy150Open openstack/sahara/sahara/service/edp/binary_retrievers/internal_swift.py/_validate_job_binary_url/operator `==` -> `not in`