예제 #1
0
 def test__find_vote_link_commen_down(self):
     self.assertIsNone(
         votes._find_vote_link(self.comments, COMMENT_ID, 'down'))
예제 #2
0
 def test__find_vote_link_story_down(self):
     self.assertIsNone(
         votes._find_vote_link(self.front_page, STORY_ID, 'down'))
예제 #3
0
 def test__find_vote_link_comment_up(self):
     self.assertEqual(
         votes._find_vote_link(self.comments, COMMENT_ID, 'up'),
         u'vote?for=4705841&dir=up&whence=%69%74%65%6d%3f%69%64%3d%34%37%30%35%30%36%37'
     )
예제 #4
0
 def test__find_vote_link_story_up(self):
     self.assertEqual(
         votes._find_vote_link(self.front_page, STORY_ID, 'up'),
         u'vote?for=4698446&dir=up&whence=%2f%78%3f%66%6e%69%64%3d%79%52%69%66%62%35%47%72%6a%37'
     )
예제 #5
0
 def test__find_vote_link_commen_down(self):
     self.assertIsNone(votes._find_vote_link(self.comments, COMMENT_ID, "down"))
예제 #6
0
 def test__find_vote_link_comment_up(self):
     self.assertEqual(
         votes._find_vote_link(self.comments, COMMENT_ID, "up"),
         u"vote?for=4705841&dir=up&whence=%69%74%65%6d%3f%69%64%3d%34%37%30%35%30%36%37",
     )
예제 #7
0
 def test__find_vote_link_story_down(self):
     self.assertIsNone(votes._find_vote_link(self.front_page, STORY_ID, "down"))
예제 #8
0
 def test__find_vote_link_story_up(self):
     self.assertEqual(
         votes._find_vote_link(self.front_page, STORY_ID, "up"),
         u"vote?for=4698446&dir=up&whence=%2f%78%3f%66%6e%69%64%3d%79%52%69%66%62%35%47%72%6a%37",
     )