示例#1
0
    def test_it(self):
        app = self._getAUT()
        res = app.get('/')
        self.assertTrue('Hello' in res)

        res = app.get('/hello/aodag')
        self.assertTrue('Hello aodag' in res)
示例#2
0
    def test_generate(self):
        app = self._getAUT()
        res = app.get('/gen')
        self.assertTrue('/sub/x' in res)

        res = app.get('/sub/gen')
        self.assertTrue('/sub/x' in res)
示例#3
0
    def test_it(self):
        app = self._getAUT()
        res = app.get('/')
        self.assertTrue('/' in res)

        res = app.get('/sub')
        self.assertTrue('/sub' in res)

        res = app.get('/sub/x')
        self.assertTrue('/sub/x' in res)
示例#4
0
 def test_it(self):
     app = self._getAUT()
     res = app.get('/')
     self.assertEqual(res.body, 'http://localhost:80/')