def ascii_to_image(text, **kwargs): return Emoji.ascii_to_image(text, **kwargs)
def test_ascii_char(self): ascii = ">:/" image = '<img class="joypixels" alt="😕" src="https://cdn.jsdelivr.net/joypixels/assets/4.5/png/64/1f615.png"/>' self.assertEqual(Emoji.ascii_to_image(ascii), image)
def shortcode_to_unicode(value, *args, **kwargs): return mark_safe(Emoji.ascii_to_image(value, **kwargs))
def ascii_to_image(value, *args, **kwargs): return mark_safe(Emoji.ascii_to_image(value, **kwargs))
def test_ascii_char(self): ascii = ">:/" image = '<img class="emojione" alt="😕" src="https://cdn.jsdelivr.net/emojione/assets/3.1/png/64/1f615.png"/>' self.assertEqual(Emoji.ascii_to_image(ascii), image)