test_api_ad_auth.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:data-hub-backend 作者: uktrade-attic 项目源码 文件源码
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
                    )
                }
            }
        })
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号