'Verify fetching a badge first grabs existing badges.'

def test_get_badge_class_preexisting(self):

    premade_badge_class = BadgeClassFactory.create()
    badge_class = BadgeClass.get_badge_class(slug='test_slug', issuing_component='test_component', description='Attempted    override', criteria='test', display_name='Testola', image_file_handle=get_image('good'))
    self.assertEqual(badge_class.criteria, 'https://example.com/syllabus')
    self.assertEqual(badge_class.display_name, 'Test    Badge')
    self.assertEqual(badge_class.description, "Yay!    It's    a    test    badge.")
    self.assertEqual(badge_class.image.path, premade_badge_class.image.path)
