示例#1
0
 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)
示例#2
0
 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)