def test_shortcode_to_ascii(self): txt = 'Hello world! 😄 :smile:' expected = [ 'Hello world! 😄 :]', 'Hello world! 😄 :-)', 'Hello world! 😄 =)', 'Hello world! 😄 :)', 'Hello world! 😄 =]' ] output = Emoji.shortcode_to_ascii(txt) self.assertIn(output, expected)
def test_shortcode_to_ascii(self): txt = 'Hello world! 😄 :slight_smile:' expected = [ 'Hello world! 😄 :]', 'Hello world! 😄 :-)', 'Hello world! 😄 =)', 'Hello world! 😄 :)', 'Hello world! 😄 =]' ] output = Emoji.shortcode_to_ascii(txt) self.assertIn(output, expected)