[damned-lies] Updated people test to account for recent profile link changes



commit 903d91fb0483b6866c530d1d7f3f383c4e178bae
Author: Claude Paroz <claude 2xlibre net>
Date:   Sat May 14 11:36:49 2016 +0200

    Updated people test to account for recent profile link changes

 damned-lies.doap |    4 ++--
 people/tests.py  |    7 +++++--
 2 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/damned-lies.doap b/damned-lies.doap
index 0fcd945..e574e20 100644
--- a/damned-lies.doap
+++ b/damned-lies.doap
@@ -1,7 +1,7 @@
 <Project xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";
          xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#";
          xmlns:foaf="http://xmlns.com/foaf/0.1/";
-         xmlns:gnome="https://api.gnome.org/doap-extensions#";
+         xmlns:gnome="http://api.gnome.org/doap-extensions#";
          xmlns="http://usefulinc.com/ns/doap#";>
 
   <name xml:lang="en">damned-lies</name>
@@ -10,7 +10,7 @@
   <homepage rdf:resource="https://l10n.gnome.org/"; />
   <bug-database rdf:resource="https://bugzilla.gnome.org/browse.cgi?product=damned-lies"/>
   <mailing-list rdf:resource="https://mail.gnome.org/mailman/listinfo/gnome-i18n"; />
-  <category rdf:resource="https://api.gnome.org/doap-extensions#infrastructure"; />
+  <category rdf:resource="http://api.gnome.org/doap-extensions#infrastructure"; />
   <programming-language>Python</programming-language>
 
   <maintainer>
diff --git a/people/tests.py b/people/tests.py
index 1de6d98..89e9d3d 100644
--- a/people/tests.py
+++ b/people/tests.py
@@ -60,11 +60,14 @@ class PeopleTestCase(TestCase):
 
     def test_login_link(self):
         self.pn = self._create_person()
-        self.client.login(username='jn', password='password')
+        self.assertTrue(self.client.login(username='jn', password='password'))
         response = self.client.get(reverse('home'))
         self.assertContains(
             response,
-            '<a href="%s">' % (reverse('person_detail_username', args=[self.pn.username]),)
+            '<a href="%s" class="avatar" title="Profile"><img src="/static/img/nobody.png" '
+            'alt="generic person icon"></a>' % (
+                reverse('person_detail_username', args=[self.pn.username]),),
+            html=True
         )
 
     def test_edit_details(self):


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