test_resources.py 文件源码

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

项目:txdarn 作者: markrwilliams 项目源码 文件源码
def test_greeting_trailing_slash(self):
        '''The Greeting resource must be accessible as the direct child of the
        TxDarn resource (i.e., with a trailing slash).

        '''
        # a trailing slash -- empty string in postpath
        self.request.postpath = [b'']
        resrc = getChildForRequest(self.txdarn, self.request)
        self.assertIs(resrc, self.txdarn.greeting)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号