示例#1
0
 def test_is_mention(self):
     is_it = Preprocessor.is_mention('@twitter')
     self.assertEqual(is_it, True)
     is_it = Preprocessor.is_mention('#twitter')
     self.assertEqual(is_it, False)
示例#2
0
 def test_is_mention(self):
     is_it = Preprocessor.is_mention('@twitter')
     self.assertEqual(is_it, True)
     is_it = Preprocessor.is_mention('#twitter')
     self.assertEqual(is_it, False)