diff rhodecode/tests/functional/test_followers.py @ 1375:f9559677c953 beta

added tests for forks and followers pages
author Marcin Kuzminski <marcin@python-works.com>
date Thu, 09 Jun 2011 17:33:19 +0200
parents
children 63e49418a4cc
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rhodecode/tests/functional/test_followers.py	Thu Jun 09 17:33:19 2011 +0200
@@ -0,0 +1,13 @@
+from rhodecode.tests import *
+
+class TestFollowersController(TestController):
+
+    def test_index(self):
+        self.log_user()
+        repo_name = HG_REPO
+        response = self.app.get(url(controller='followers',
+                                    action='followers',
+                                    repo_name=repo_name))
+
+        self.assertTrue("""test_admin""" in response.body)
+        self.assertTrue("""Started following""" in response.body)