summaryrefslogtreecommitdiffstats
path: root/tests/test_controller.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_controller.py')
-rw-r--r--tests/test_controller.py12
1 files changed, 12 insertions, 0 deletions
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