Beispiel #1
0
 def test_emojize(self):
     self.assertEqual("Merry christmas 🎄!",
                      emoji.emojize("Merry christmas :christmas_tree:!"))
     self.assertEqual("Merry christmas :🎄!",
                      emoji.emojize("Merry christmas ::christmas_tree:!"))
     self.assertEqual("::🎄 tricky stuff!",
                      emoji.emojize(":::christmas_tree: tricky stuff!"))
Beispiel #2
0
 def test_emojize_verbatim_block(self):
     self.assertEqual(
         "```Merry christmas :christmas_tree:!```",
         emoji.emojize("```Merry christmas :christmas_tree:!```"))
     self.assertEqual(
         "```Merry christmas ` :christmas_tree:!```",
         emoji.emojize("```Merry christmas ` :christmas_tree:!```"))
Beispiel #3
0
 def test_emojize_verbatim_text(self):
     self.assertEqual(
         "`Merry christmas :christmas_tree:!`",
         emoji.emojize("`Merry christmas :christmas_tree:!`"),
     )