def test_with_empty_project_id(self):
data = generate_password_auth_data({
'name': self.username,
'password': self.password,
})
resp = self.authenticate(data)
token = resp.headers['X-Subject-Token']
data = generate_token_auth_data_with_scope(
token_id=token,
scope={'project': {'id': ''}})
self.authenticate(data, httplib.BAD_REQUEST)
评论列表
文章目录