

def test_invalid_grant(self):
    url = '/oauth/token?grant_type=authorization_code&code=54321&scope=email'
    rv = self.client.get(url, headers={
        'Authorization': ('Basic %s' % auth_code),
    })
    assert (b'invalid_grant' in rv.data)

dataset/ETHPy150Open lepture/flask-oauthlib/tests/oauth2/test_oauth2.py TestConfidentialClient.test_invalid_grant/original