def test_new_from_json_bad_class(self):
creds_data = {
'_module': 'oauth2client.client',
'_class': 'NopeNotCredentials',
}
json_data = json.dumps(creds_data)
with self.assertRaises(AttributeError):
client.Credentials.new_from_json(json_data)
评论列表
文章目录