'Ensure that the REFUND_ORDER signal triggers correct calls to
refund_seat(), when it is appropriate to do so.
TODO (jsa): ideally we would assert that the signal receiver got wired
up independently of the import statement in this module.  I\'m not aware
of any reliable / sane way to do this.'

@mock.patch(u'commerce.signals.refund_seat')
def test_receiver(self, mock_refund_seat):

    self.send_signal()
    self.assertTrue(mock_refund_seat.called)
    self.assertEqual(mock_refund_seat.call_args[0], (self.course_enrollment,))
    mock_refund_seat.reset_mock()
    self.course_enrollment.refundable = mock.Mock(return_value=False)
    self.send_signal()
    self.assertFalse(mock_refund_seat.called)
