

def test_no_bear_token(self):

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

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