Commit 903d91fb authored by Claude Paroz's avatar Claude Paroz

Updated people test to account for recent profile link changes

parent 53bdca3e
<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>
......
......@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment