Exemple #1
0
 def test_entry_trackbacks(self):
     entry = self.create_published_entry()
     comments = self.create_discussions(entry)
     feed = EntryTrackbacks()
     self.assertEquals(list(feed.items(entry)), [comments[2]])
     self.assertEquals(feed.item_link(comments[2]),
                       '/comments/cr/%i/1/#trackback_3' % self.entry_ct_id)
 def test_entry_trackbacks(self):
     entry = self.create_published_entry()
     comments = self.create_discussions(entry)
     feed = EntryTrackbacks()
     self.assertEquals(list(feed.items(entry)), [comments[2]])
     self.assertEquals(feed.item_link(comments[2]),
                       '/comments/cr/%i/1/#trackback_3' % self.entry_ct_id)
Exemple #3
0
 def test_entry_trackbacks(self):
     entry = self.create_published_entry()
     comments = self.create_discussions(entry)
     feed = EntryTrackbacks()
     self.assertEquals(list(feed.items(entry)), [comments[2]])
     self.assertEquals(feed.item_link(comments[2]), "/comments/cr/%i/1/#trackback_3" % self.entry_ct_id)
     self.assertEquals(feed.get_title(entry), "Trackbacks on %s" % entry.title)
     self.assertEquals(feed.description(entry), "The latest trackbacks for the entry %s" % entry.title)
 def test_entry_trackbacks(self):
     entry = self.create_published_entry()
     comments = self.create_discussions(entry)
     feed = EntryTrackbacks()
     self.assertEqual(list(feed.items(entry)), [comments[2]])
     self.assertEqual(feed.item_link(comments[2]),
                      '/comments/cr/%i/%i/#trackback-%i' %
                      (self.entry_ct_id, entry.pk, comments[2].pk))
     self.assertEqual(feed.get_title(entry),
                      'Trackbacks on %s' % entry.title)
     self.assertEqual(
         feed.description(entry),
         'The latest trackbacks for the entry %s' % entry.title)
Exemple #5
0
 def test_entry_trackbacks(self):
     entry = self.create_published_entry()
     comments = self.create_discussions(entry)
     feed = EntryTrackbacks()
     self.assertEquals(list(feed.items(entry)), [comments[2]])
     self.assertEquals(feed.item_link(comments[2]),
                       '/comments/cr/%i/1/#trackback_3' % self.entry_ct_id)
     self.assertEquals(feed.title(entry),
                       _('Trackbacks on %s') % entry.title)
     self.assertEquals(feed.description(entry),
                       _('The latest trackbacks for the entry %s') % entry.title)
Exemple #6
0
 def test_entry_trackbacks(self):
     entry = self.create_published_entry()
     comments = self.create_discussions(entry)
     feed = EntryTrackbacks()
     self.assertEqual(list(feed.items(entry)), [comments[2]])
     self.assertEqual(
         feed.item_link(comments[2]), '/comments/cr/%i/%i/#trackback-%i' %
         (self.entry_ct_id, entry.pk, comments[2].pk))
     self.assertEqual(feed.get_title(entry),
                      'Trackbacks on %s' % entry.title)
     self.assertEqual(feed.description(entry),
                      'The last trackbacks on the entry %s' % entry.title)
Exemple #7
0
        name='discussion_feed'),
    url(_(r'^search/$'),
        SearchEntries(),
        name='entry_search_feed'),
    url(_(r'^tags/(?P<tag>[^/]+(?u))/$'),
        TagEntries(),
        name='tag_feed'),
    url(_(r'^authors/(?P<username>[.+-@\w]+)/$'),
        AuthorEntries(),
        name='author_feed'),
    url(_(r'^categories/(?P<path>[-\/\w]+)/$'),
        CategoryEntries(),
        name='category_feed'),
    url(_(r'^discussions/(?P<year>\d{4})/(?P<month>\d{2})/'
          '(?P<day>\d{2})/(?P<slug>[-\w]+)/$'),
        EntryDiscussions(),
        name='entry_discussion_feed'),
    url(_(r'^comments/(?P<year>\d{4})/(?P<month>\d{2})/'
          '(?P<day>\d{2})/(?P<slug>[-\w]+)/$'),
        EntryComments(),
        name='entry_comment_feed'),
    url(_(r'^pingbacks/(?P<year>\d{4})/(?P<month>\d{2})/'
        '(?P<day>\d{2})/(?P<slug>[-\w]+)/$'),
        EntryPingbacks(),
        name='entry_pingback_feed'),
    url(_(r'^trackbacks/(?P<year>\d{4})/(?P<month>\d{2})/'
        '(?P<day>\d{2})/(?P<slug>[-\w]+)/$'),
        EntryTrackbacks(),
        name='entry_trackback_feed'),
]