def _has_required_moto():
    '\n    Returns True or False depending on if ``moto`` is installed and at the correct version,\n    depending on what version of Python is running these tests.\n    '
    if (not HAS_MOTO):
        return False
    else:
        moto_version = salt.utils.versions.LooseVersion(pkg_resources.get_distribution('moto').version)
        if (moto_version < salt.utils.versions.LooseVersion(required_moto)):
            return False
        elif (moto_version < salt.utils.versions.LooseVersion(required_moto_py3)):
            return False
    return True
Returns True or False depending on if ``moto`` is installed and at the correct version,
depending on what version of Python is running these tests.
def _has_required_moto():
    '\n    Returns True or False depending on if ``moto`` is installed and at the correct version,\n    depending on what version of Python is running these tests.\n    '
    if (not HAS_MOTO):
        return False
    else:
        moto_version = salt.utils.versions.LooseVersion(pkg_resources.get_distribution('moto').version)
        if (moto_version < salt.utils.versions.LooseVersion(required_moto)):
            return False
        elif (moto_version < salt.utils.versions.LooseVersion(required_moto_py3)):
            return False
    return True