

def test_expires_bear_token(self):

    @self.oauth_client.tokengetter
    def get_oauth_token():
        return ('expired', '')
    rv = self.client.get('/method/put')
    assert (b'token is expired' in rv.data)

dataset/ETHPy150Open lepture/flask-oauthlib/tests/oauth2/test_oauth2.py TestWebAuth.test_expires_bear_token/original