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

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