[#814] - add simple test

Rick Copeland Rick Copeland 2010-08-23

added ForgeChat/forgechat/tests/functional/__init__.py
added ForgeChat/forgechat/tests/__init__.py
added ForgeChat/test.ini
removed ForgeChat/forgechat/nf
removed ForgeChat/forgechat/nf/+plugin_name+
removed ForgeChat/forgechat/nf/+plugin_name+/js
removed ForgeChat/forgechat/static
removed ForgeChat/forgechat/static/+plugin_name+
removed ForgeChat/forgechat/static/+plugin_name+/js
removed ForgeChat/forgechat/static/+plugin_name+/js/comments.js
copied ForgeChat/forgechat/nf/+plugin_name+/js/comments.js -> ForgeChat/forgechat/tests/functional/test_root.py
ForgeChat/forgechat/tests/functional/__init__.py Diff Switch to side-by-side view
Loading...
ForgeChat/forgechat/tests/__init__.py Diff Switch to side-by-side view
Loading...
ForgeChat/test.ini Diff Switch to side-by-side view
Loading...
ForgeChat/forgechat/nf
File was removed.
ForgeChat/forgechat/static
File was removed.
ForgeChat/forgechat/nf/+plugin_name+/js/comments.js to ForgeChat/forgechat/tests/functional/test_root.py
--- a/ForgeChat/forgechat/nf/+plugin_name+/js/comments.js
+++ b/ForgeChat/forgechat/tests/functional/test_root.py
@@ -1,11 +1,7 @@
-(function($){
-    $(function() {
-        console.log('in comments.js');
-        $('div.reply').each(function() {
-            var form = $('form', this).addClass('hidden');
-            $('h3', this).click(function() {
-                form.toggleClass('hidden');
-            });
-        });
-    });
-})(jQuery);
+from forgechat.tests import TestController
+
+class TestRootController(TestController):
+
+    def test_root_index(self):
+        response = self.app.get('/chat/').follow()
+        assert 'Log for' in response