예제 #1
0
    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)
예제 #2
0
    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)