Exemplo n.º 1
0
 def test_searched_post_str_formatting(self):
     post = Post(post_type='image')
     r = searched_post_str(post, 1000000)
     expected = '**Searched Images:** 1,000,000'
     self.assertEqual(expected, r)
Exemplo n.º 2
0
 def test_searched_post_str_link_valid_count(self):
     post = Post(post_type='link')
     r = searched_post_str(post, 10)
     expected = '**Searched Links:** 10'
     self.assertEqual(expected, r)
Exemplo n.º 3
0
 def test_searched_post_str_unknowntype_valid_count(self):
     post = Post(post_type='video')
     r = searched_post_str(post, 10)
     expected = '**Searched:** 10'
     self.assertEqual(expected, r)
Exemplo n.º 4
0
 def test_searched_post_str_valid_count(self):
     post = Post(post_type='image')
     r = searched_post_str(post, 10)
     expected = '**Searched Images:** 10'
     self.assertEqual(expected, r)