Esempio n. 1
0
 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)
Esempio n. 2
0
 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)
Esempio n. 3
0
 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)
Esempio n. 4
0
 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/')
Esempio n. 5
0
 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/')