def test_reply(self, mock_support): """Given a message, a support notification should be sent to the task's user.""" # pylint: disable=no-self-use flagged_task = FlaggedTaskFactory() reply = 'Lorem ipsum' flagged_task.reply(reply) mock_support.assert_called_with(flagged_task.user, reply, flagged_task)
def test_reply(self, mock_support): """Given a message, a support notification should be sent to the task's user.""" flagged_task = FlaggedTaskFactory() reply = "Lorem ipsum" flagged_task.reply(reply) mock_support.assert_called_with(flagged_task.user.pk, reply, flagged_task.pk)