'Make sure we can get back the optional course name'

def test_course_name(self):

    self.enroll()
    credit_state = self.service.get_credit_state(self.user.id, self.course.id)
    self.assertNotIn('course_name', credit_state)
    credit_state = self.service.get_credit_state(self.user.id, self.course.id, return_course_info=True)
    self.assertIn('course_name', credit_state)
    self.assertEqual(credit_state['course_name'], self.course.display_name)
