@pytest.fixture
def topic_in_locked_forum(forum_locked, user):
 topic = Topic(title='Test Topic Forum Locked')
 post = Post(content='Test Content Forum Locked')
 return topic.save(forum=forum_locked, user=user, post=post)

@ pytest . fixture def topic_in_locked_forum ( forum_locked , user ) : topic = Topic ( title = 'Test Topic Forum Locked' ) post = Post ( content = 'Test Content Forum Locked' ) return topic . save ( forum = forum_locked , user = user , post = post )
a locked topic by a user with normal permissions .