[damned-lies] Updated test assertions



commit 2d66a15e5e87ad2a5e476341b2af93fe68048ca2
Author: Claude Paroz <claude 2xlibre net>
Date:   Thu Mar 28 23:37:05 2013 +0100

    Updated test assertions

 stats/tests/__init__.py |    2 +-
 teams/tests.py          |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/stats/tests/__init__.py b/stats/tests/__init__.py
index 9b15601..df75a35 100644
--- a/stats/tests/__init__.py
+++ b/stats/tests/__init__.py
@@ -235,7 +235,7 @@ class ModuleTestCase(TestCase):
     def test_update_doap_infos(self):
         from stats.doap import update_doap_infos
         update_doap_infos(self.mod)
-        self.assertEqual(self.mod.homepage, "https://git.gnome.org/browse/gnome-hello";)
+        self.assertEqual(self.mod.homepage, "http://git.gnome.org/browse/gnome-hello";)
 
 
 class StatisticsTests(TestCase):
diff --git a/teams/tests.py b/teams/tests.py
index cf87405..75e2c40 100644
--- a/teams/tests.py
+++ b/teams/tests.py
@@ -135,7 +135,7 @@ class TeamTest(TeamsAndRolesTests):
         # Display team join page
         team_join_url = reverse('person_team_join', current_app='people')
         response = c.get(team_join_url)
-        self.assertContains(response, "select name=\"teams\"")
+        self.assertContains(response, "<select ")
         # Post for joining
         response = c.post(team_join_url, {'teams':[str(self.t.pk)]})
         # Test user is member of team


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]