def mock_cookie(self):
"""
Makes sure that the cookie is there.
"""
from http.cookiejar import Cookie
self.cookie_storage.write({
'example.com': {
'/': {
'NID': Cookie(
version=0, name='NID', value='0000', port=None, port_specified=False,
domain='example.com', domain_specified=True, domain_initial_dot=True,
path='/', path_specified=True, secure=False, expires=1476201395,
discard=False, comment=None, comment_url=None, rest={'HttpOnly': None},
rfc2109=False
)
}
}
})
test_api_ad_auth.py 文件源码
python
阅读 22
收藏 0
点赞 0
评论 0
评论列表
文章目录