def test_group_avatar(self):
        g = GroupFactory()
        g.save()
        p = GroupProfile.objects.create(group=g, slug='foo')
        url = group_avatar(p)
        eq_(settings.STATIC_URL + settings.DEFAULT_AVATAR, url)
        p.avatar = Mock()
        p.avatar.url = '/foo/bar'
        url = group_avatar(p)
        eq_('/foo/bar', url)
dataset/ETHPy150Open mozilla/kitsune/kitsune/groups/tests/test_templatetags.py/GroupHelperTests.test_group_avatar/original