Exemplo n.º 1
0
 def test_latest_entries(self):
     self.create_published_entry()
     feed = LatestEntries()
     self.assertEquals(feed.link(), "/")
     self.assertEquals(len(feed.items()), 1)
     self.assertEquals(feed.get_title(None), "Latest entries")
     self.assertEquals(feed.description(), "The latest entries for the site example.com")
Exemplo n.º 2
0
 def test_latest_entries(self):
     self.create_published_entry()
     feed = LatestEntries()
     self.assertEquals(feed.link(), '/')
     self.assertEquals(len(feed.items()), 1)
     self.assertEquals(feed.get_title(None), 'Latest entries')
     self.assertEquals(feed.description(),
                       'The latest entries for the site example.com')
Exemplo n.º 3
0
 def test_latest_entries(self):
     self.create_published_entry()
     feed = LatestEntries()
     self.assertEquals(feed.link(), '/')
     self.assertEquals(len(feed.items()), 1)
     self.assertEquals(feed.title(), 'example.com - %s' % _('Latest entries'))
     self.assertEquals(feed.description(),
                       _('The latest entries for the site %s') % 'example.com')
Exemplo n.º 4
0
 def test_latest_entries(self):
     self.create_published_entry()
     feed = LatestEntries()
     self.assertEquals(feed.link(), '/')
     self.assertEquals(len(feed.items()), 1)
     self.assertEquals(feed.title(), 'example.com - %s' % _('Latest entries'))
     self.assertEquals(feed.description(),
                       _('The latest entries for the site %s') % 'example.com')
 def test_latest_entries(self):
     self.create_published_entry()
     feed = LatestEntries()
     self.assertEqual(feed.link(), '/')
     self.assertEqual(len(feed.items()), 1)
     self.assertEqual(feed.get_title(None), 'Latest entries')
     self.assertEqual(
         feed.description(),
         'The latest entries on the site example.com')
Exemplo n.º 6
0
 def test_latest_entries(self):
     self.create_published_entry()
     feed = LatestEntries()
     self.assertEquals(feed.link(), '/')
     self.assertEquals(len(feed.items()), 1)
Exemplo n.º 7
0
 def test_latest_entries(self):
     self.create_published_entry()
     feed = LatestEntries()
     self.assertEquals(feed.link(), '/')
     self.assertEquals(len(feed.items()), 1)