'Verify attempting to fetch a badge class for a course which does not issue badges raises an
exception.'

def test_get_badge_class_course_disabled(self):

    course_key = CourseFactory.create(metadata={'issue_badges': False}).location.course_key
    with self.assertRaises(CourseBadgesDisabledError):
        BadgeClass.get_badge_class(slug='test_slug', issuing_component='test_component', description='Attempted    override', criteria='test', display_name='Testola', image_file_handle=get_image('good'), course_id=course_key)
