'Make sure ensure_badge_created doesn\'t call create_badge if we know the badge is already there.'

def test_ensure_badge_created_cache(self):

    BadgrBackend.badges.append(EXAMPLE_SLUG)
    self.handler._create_badge = Mock()
    self.handler._ensure_badge_created(self.badge_class)
    self.assertFalse(self.handler._create_badge.called)
