test_facebook.py 文件源码

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

项目:PythonStudyCode 作者: TongTongX 项目源码 文件源码
def test_extend_access_token(self):
        """
        Test if extend_access_token requests the correct endpoint.

        Note that this only tests whether extend_access_token returns the
        correct error message when called without a proper user-access token.

        """
        try:
            facebook.GraphAPI().extend_access_token(self.app_id, self.secret)
        except facebook.GraphAPIError as e:
            self.assertEqual(
                e.message, "fb_exchange_token parameter not specified")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号