'Given a badge class, create an assertion for the current user and fetch it, checking the structure.'

def check_badge_class_assertion(self, check_course, wildcard, badge_class):

    assertion = BadgeAssertionFactory.create(badge_class=badge_class, user=self.user)
    response = self.get_json(self.url(), data=self.get_qs_args(check_course, wildcard, badge_class))
    self.check_assertion_structure(assertion, response['results'][0])
