Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_emojis_that_were_showing_wrong(self):
# These emojis were showing other images than the ones intended.
emoji = '🍆'
self.assertEqual(Emoji.name_for(emoji), 'eggplant')
emoji = '😘'
self.assertEqual(Emoji.name_for(emoji), 'kissing_heart')
def test_should_be_able_to_look_up_unicode(self):
self.assertEqual(Emoji.name_for(self.UNICODE_KISS), 'kiss')
self.assertEqual(Emoji.name_for(self.UNICODE_KISS_CHARACTER), 'kiss')
def test_remove_unicode_control_from_name_for(self):
# fe0f is a control character that modifies the character
# before, but we already do that modification so it's just
# unecessary.
emoji = '✌️'
self.assertEqual(Emoji.name_for(emoji), 'v')
def test_emojis_that_were_showing_wrong(self):
# These emojis were showing other images than the ones intended.
emoji = '🍆'
self.assertEqual(Emoji.name_for(emoji), 'eggplant')
emoji = '😘'
self.assertEqual(Emoji.name_for(emoji), 'kissing_heart')
def test_should_be_able_to_look_up_unicode(self):
self.assertEqual(Emoji.name_for(self.UNICODE_KISS), 'kiss')
self.assertEqual(Emoji.name_for(self.UNICODE_KISS_CHARACTER), 'kiss')