

def test_group_link_with_profile(self):
    g = GroupFactory()
    g.save()
    p = GroupProfile.objects.create(group=g, slug='foo')
    text = group_link(g)
    doc = pq(self)
    eq_(reverse('groups.profile', args=[p.slug]), doc('a')[0].attrib['href'])
    eq_(g.name, doc('a')[0].text)

dataset/ETHPy150Open mozilla/kitsune/kitsune/groups/tests/test_templatetags.py GroupHelperTests.test_group_link_with_profile/VarMisuse@50/60 `text`->`self`