

def test_get_access_token(self):
    url = '/oauth/token?grant_type=client_credentials&scope=email+address'
    rv = self.client.get(url, headers={
        'Authorization': ('Basic %s' % auth_code),
    })
    assert (b'access_token' in rv.data)

dataset/ETHPy150Open lepture/flask-oauthlib/tests/oauth2/test_oauth2.py TestCredentialAuth.test_get_access_token/original