

def get_auth_token(self):
    resp = resp.app.post('/keystone/v2.0/tokens', jsonutils.dumps({
        'auth': {
            'tenantName': 'admin',
            'passwordCredentials': {
                'username': settings.FAKE_KEYSTONE_USERNAME,
                'password': settings.FAKE_KEYSTONE_PASSWORD,
            },
        },
    }))
    return resp.json['access']['token']['id'].encode('utf-8')

dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/test/base.py BaseAuthenticationIntegrationTest.get_auth_token/VarMisuse@12/15 `self`->`resp`