def test__from_base_type_valid_creds(self):
creds_prop = TestNDBModel.creds
creds_json = json.dumps({
'_class': 'Credentials',
'_module': 'oauth2client.client',
'token_expiry': None,
})
creds = creds_prop._from_base_type(creds_json)
self.assertIsInstance(creds, client.Credentials)
test__appengine_ndb.py 文件源码
python
阅读 19
收藏 0
点赞 0
评论 0
评论列表
文章目录