From ef6aa096bbb8f52c2bad76f3b086167db326da89 Mon Sep 17 00:00:00 2001 From: Luke Macken Date: Fri, 27 Jun 2008 21:43:09 -0400 Subject: Initial TG2 quickstart --- tests/test_controller.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/test_controller.py (limited to 'tests/test_controller.py') diff --git a/tests/test_controller.py b/tests/test_controller.py new file mode 100644 index 0000000..c6bb8f4 --- /dev/null +++ b/tests/test_controller.py @@ -0,0 +1,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 -- cgit