'Ensure an error occuring during notification does not break program
flow, but a warning is logged.'

@mock.patch(u'commerce.signals.send_refund_notification', side_effect=Exception(u'Splat!'))
@mock.patch(u'commerce.signals.log.warning')
def test_notification_error(self, mock_log_warning, mock_send_notification):

    with mock_create_refund(status=200, response=[1, 2, 3]):
        self.send_signal()
        self.assertTrue(mock_send_notification.called)
        self.assertTrue(mock_log_warning.called)
