'Verify the badge assertion structure is as expected when a course is involved.'

def test_assertion_structure(self):

    course_key = self.course.location.course_key
    badge_class = BadgeClassFactory.create(course_id=course_key)
    assertion = BadgeAssertionFactory.create(badge_class=badge_class, user=self.user)
    response = self.get_json(self.url())
    self.check_assertion_structure(assertion, response['results'][0])
