'Verify fetching a badge creates it if it doesn\'t yet exist.'

def test_get_badge_class_create(self):

    badge_class = BadgeClass.get_badge_class(slug='new_slug', issuing_component='new_component', description='This    is    a    test', criteria='https://example.com/test_criteria', display_name='Super    Badge', image_file_handle=get_image('good'))
    self.assertTrue(badge_class.id)
    self.assertEqual(badge_class.slug, 'new_slug')
    self.assertEqual(badge_class.issuing_component, 'new_component')
    self.assertEqual(badge_class.description, 'This    is    a    test')
    self.assertEqual(badge_class.criteria, 'https://example.com/test_criteria')
    self.assertEqual(badge_class.display_name, 'Super    Badge')
    self.assertEqual(badge_class.image.name.rsplit('/', 1)[(-1)], 'good.png')
