'Ensures the receiver function is invoked when COURSE_CERT_AWARDED is
sent.
Suboptimal: because we cannot mock the receiver function itself (due
to the way django signals work), we mock a configuration call that is
known to take place inside the function.'

def test_signal_received(self, mock_is_learner_issuance_enabled, mock_task):

    COURSE_CERT_AWARDED.send(**self.signal_kwargs)
    self.assertEqual(mock_is_learner_issuance_enabled.call_count, 1)
