'Verify a badge has been created for this badge class, and create it if not.'

def _ensure_badge_created(self, badge_class):

    slug = self._slugify(badge_class)
    if (slug in BadgrBackend.badges):
        return
    response = requests.get(self._badge_url(slug), headers=self._get_headers(), timeout=settings.BADGR_TIMEOUT)
    if (response.status_code != 200):
        self._create_badge(badge_class)
    BadgrBackend.badges.append(slug)
