Example #1
0
 def test_clean_post_punc(self):
     post = '!'
     self.assertEqual(data.clean_post(post), ' ')
Example #2
0
 def test_clean_post(self):
     post = 'worda 35 wordb @test_ù wordc https://example.com/abc wordd'\
            ' ab.cd/ef worde ! wordf'
     self.assertEqual(data.clean_post(post),
         'worda   wordb   wordc   wordd   worde   wordf')
Example #3
0
 def test_clean_post_short_url(self):
     post = 'ab.cd/ef'
     self.assertEqual(data.clean_post(post), ' ')
Example #4
0
 def test_clean_post_url_3(self):
     post = 'https://example.com/abc'
     self.assertEqual(data.clean_post(post), ' ')
Example #5
0
 def test_clean_post_url_1(self):
     post = 'http://example.com'
     self.assertEqual(data.clean_post(post), ' ')
Example #6
0
 def test_clean_post_user(self):
     post = '@test_ù'
     self.assertEqual(data.clean_post(post), ' ')
Example #7
0
 def test_clean_post_number(self):
     post = '35'
     self.assertEqual(data.clean_post(post), ' ')