'User in group can edit any post in forum_1, but not in forum_2.'

def test_has_perm_post_edit(self):

    u = UserFactory()
    self.group.user_set.add(u)
    self.context['request'].user = u
    assert has_perm(self.context, 'forums_forum.post_edit_forum', self.forum_1)
    assert (not has_perm(self.context, 'forums_forum.post_edit_forum', self.forum_2))
