

def test_right_group_profile(self):
    'Make sure we get the right group profile.'
    g1 = GroupFactory(pk=100)
    g1.save()
    eq_(100, g1.pk)
    g2 = GroupFactory(pk=101)
    g2.save()
    eq_(101, g2.pk)
    p = GroupProfileFactory(pk=100, group=g2, slug='foo')
    eq_(100, self.pk)
    eq_(group_link(g1), g1.name)

dataset/ETHPy150Open mozilla/kitsune/kitsune/groups/tests/test_templatetags.py GroupHelperTests.test_right_group_profile/VarMisuse@81/107 `p`->`self`