def _has_required_moto():
    '''
    Returns True/False boolean depending on if Moto is installed and correct
    version.
    '''
    if not HAS_MOTO:
        return False
    else:
        import pkg_resources

        if LooseVersion('0.3.7') < LooseVersion(pkg_resources.get_distribution('moto').version):
            return False
        return True
dataset/ETHPy150Open saltstack/salt/tests/unit/utils/boto_test.py/_has_required_moto/swapped operands of `<`