'A user can be viewed'

def test_user_detail_view(self):

    testuser = self.user_model.objects.get(username='testuser')
    url = reverse('users.user_detail', args=(testuser.username,))
    response = self.client.get(url, follow=True)
    doc = pq(response.content)
    eq_(testuser.username, doc.find('#user-head.vcard    .nickname').text())
    eq_(testuser.fullname, doc.find('#user-head.vcard    .fn').text())
    eq_(testuser.title, doc.find('#user-head.vcard    .title').text())
    eq_(testuser.organization, doc.find('#user-head.vcard    .org').text())
    eq_(testuser.location, doc.find('#user-head.vcard    .loc').text())
    eq_(('IRC:    ' + testuser.irc_nickname), doc.find('#user-head.vcard    .irc').text())
