def test_local_content_with_parent_sent_as_reply(self, mock_send):
user = UserFactory()
parent = ContentFactory(author=user.profile)
mock_send.reset_mock()
content = ContentFactory(author=user.profile, parent=parent)
self.assertTrue(content.local)
call_args = [
call(send_reply_notifications, content.id),
call(send_reply, content.id),
]
assert mock_send.call_args_list == call_args
评论列表
文章目录