'Users can edit their own threads.'

def test_has_perm_or_owns_thread_edit(self):

    my_t = ThreadFactory()
    me = my_t.creator
    other_t = ThreadFactory()
    self.context['request'].user = me
    perm = 'forums_forum.thread_edit_forum'
    assert has_perm_or_owns(self.context, perm, my_t, self.forum_1)
    assert (not has_perm_or_owns(self.context, perm, other_t, self.forum_1))
