Beispiel #1
0
 def test_numerics(self):
     self.assertEqual(escape_for_twitter(
         u'''$123.456 money #1 person @0x0000'''),
         u'''$123.456 money #\u200b1 person @\u200b0x0000''')
Beispiel #2
0
 def test_multi(self):
     self.assertEqual(escape_for_twitter(u'''Game.com $uper f@ntastic'''),
         u'''Game.​com $\u200buper f@\u200bntastic''')
Beispiel #3
0
 def test_dollar_symbol(self):
     self.assertEqual(escape_for_twitter(u'''something $kitten function'''),
         u'''something $\u200bkitten function''')
Beispiel #4
0
 def test_domain_similar(self):
     self.assertEqual(escape_for_twitter(u'''I love my Game.com device!'''),
         u'''I love my Game.\u200bcom device!''')
Beispiel #5
0
 def test_hash_symbol(self):
     self.assertEqual(escape_for_twitter(u'''something #kitten function'''),
         u'''something #\u200bkitten function''')