def test_get_access_token(self):
        rv = self.client.post(authorize_url, data={'confirm': 'yes'})
        rv = self.client.get(clean_url(rv.location))
        data = json.loads(u(rv.data))
        assert data['access_token'] == 'foobar'
        assert data['refresh_token'] == 'foobar'
dataset/ETHPy150Open lepture/flask-oauthlib/tests/oauth2/test_oauth2.py/TestTokenGenerator.test_get_access_token/original