'Verify that signal enables or disables self-generated certificates
according to course-pacing.'

def test_cert_generation_flag_on_pacing_toggle(self):

    self.assertFalse(certs_api.cert_generation_enabled(self.course.id))
    _listen_for_course_pacing_changed('store', self.course.id, self.course.self_paced)
    self.assertTrue(certs_api.cert_generation_enabled(self.course.id))
    self.course.self_paced = False
    self.store.update_item(self.course, self.user.id)
    _listen_for_course_pacing_changed('store', self.course.id, self.course.self_paced)
    self.assertFalse(certs_api.cert_generation_enabled(self.course.id))
