test_root.py 文件源码

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

项目:web 作者: pyjobs 项目源码 文件源码
def test_index(self):
        """The front page is working properly"""
        response = self.app.get('/')
        msg = 'TurboGears 2 is rapid web application development toolkit '\
              'designed to make your life easier.'
        # You can look for specific strings:
        ok_(msg in response)

        # You can also access a BeautifulSoup'ed response in your tests
        # (First run $ easy_install BeautifulSoup
        # and then uncomment the next two lines)

        # links = response.html.findAll('a')
        # print(links)
        # ok_(links, "Mummy, there are no links here!")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号