def test_tag_entries(self): self.create_published_entry() feed = TagEntries() tag = Tag(name="tests") self.assertEquals(feed.get_object("request", "tests").name, "tests") self.assertEquals(len(feed.items("tests")), 1) self.assertEquals(feed.link(tag), "/tags/tests/") self.assertEquals(feed.get_title(tag), "Entries for the tag %s" % tag.name) self.assertEquals(feed.description(tag), "The latest entries for the tag %s" % tag.name)
def test_tag_entries(self): self.create_published_entry() feed = TagEntries() tag = Tag(name='tests') self.assertEquals(feed.get_object('request', 'tests').name, 'tests') self.assertEquals(len(feed.items('tests')), 1) self.assertEquals(feed.link(tag), '/tags/tests/') self.assertEquals(feed.get_title(tag), 'Entries for the tag %s' % tag.name) self.assertEquals(feed.description(tag), 'The latest entries for the tag %s' % tag.name)
def test_tag_entries(self): self.create_published_entry() feed = TagEntries() self.assertEquals(feed.get_object('request', 'tests').name, 'tests') self.assertEquals(len(feed.items('tests')), 1) self.assertEquals(feed.link(Tag(name='tests')), '/tags/tests/')