def test__find_vote_link_commen_down(self): self.assertIsNone( votes._find_vote_link(self.comments, COMMENT_ID, 'down'))
def test__find_vote_link_story_down(self): self.assertIsNone( votes._find_vote_link(self.front_page, STORY_ID, 'down'))
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' )
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' )
def test__find_vote_link_commen_down(self): self.assertIsNone(votes._find_vote_link(self.comments, COMMENT_ID, "down"))
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", )
def test__find_vote_link_story_down(self): self.assertIsNone(votes._find_vote_link(self.front_page, STORY_ID, "down"))
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", )