diff rhodecode/tests/functional/test_login.py @ 688:8acbfa837180 beta

Tests rewrite for 1.2 added some globals configs to make tests easier. Fixed search index_location to take from configuration files now fixed git http_user_agent bug
author Marcin Kuzminski <marcin@python-works.com>
date Sun, 14 Nov 2010 17:24:32 +0100
parents 758f64f3fbda
children 7486da5f0628
line wrap: on
line diff
--- a/rhodecode/tests/functional/test_login.py	Sun Nov 14 01:30:02 2010 +0100
+++ b/rhodecode/tests/functional/test_login.py	Sun Nov 14 17:24:32 2010 +0100
@@ -17,7 +17,7 @@
         assert response.status == '302 Found', 'Wrong response code from login got %s' % response.status
         assert response.session['rhodecode_user'].username == 'test_admin', 'wrong logged in user'
         response = response.follow()
-        assert 'vcs_test repository' in response.body
+        assert '%s repository' % HG_REPO in response.body
 
     def test_login_regular_ok(self):
         response = self.app.post(url(controller='login', action='index'),
@@ -27,7 +27,7 @@
         assert response.status == '302 Found', 'Wrong response code from login got %s' % response.status
         assert response.session['rhodecode_user'].username == 'test_regular', 'wrong logged in user'
         response = response.follow()
-        assert 'vcs_test repository' in response.body
+        assert '%s repository' % HG_REPO in response.body
         assert '<a title="Admin" href="/_admin">' not in response.body
 
     def test_login_ok_came_from(self):