def get_token(self):
        url = ('/oauth/token?grant_type=password'
               '&scope=email+address&username=admin&password=admin')
        rv = self.client.get(url, headers={
            'Authorization': 'Basic %s' % auth_code,
        })
        assert b'_token' in rv.data
        return json.loads(u(rv.data))
dataset/ETHPy150Open lepture/flask-oauthlib/tests/oauth2/test_oauth2.py/TestRevokeToken.get_token/original