'Checks that the task will be aborted without further action if there
are no programs for which to award a certificate.'

def test_abort_if_no_completed_programs(self, mock_get_completed_programs, mock_get_certified_programs, mock_award_program_certificate):

    mock_get_completed_programs.return_value = []
    tasks.award_program_certificates.delay(self.student.username).get()
    self.assertTrue(mock_get_completed_programs.called)
    self.assertFalse(mock_get_certified_programs.called)
    self.assertFalse(mock_award_program_certificate.called)
