blob: c6bb8f4594ccad9ff9b52e9a40e3484e7dfb499d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
# -*- coding: utf-8 -*-
from paste.fixture import TestApp
import os.path
config = 'config:'+(os.path.abspath(os.path.basename(__name__)+'/../../development.ini#main'))
app = TestApp(config)
class TestTGController:
def test_index(self):
resp = app.get('/')
assert 'TurboGears 2 is a open source front-to-back web development' in resp.body, resp.body
|