def check(wants, has):
    if wants & has == 0:
        return False
    if wants & has < wants:
        return False
    return True
Check if a desired scope ``wants`` is part of an available scope ``has``.
dataset/ETHPy150Open caffeinehit/django-oauth2-provider/provider/scope.py/check