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")
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')
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')
def test_latest_entries(self): self.create_published_entry() feed = LatestEntries() self.assertEquals(feed.link(), '/') self.assertEquals(len(feed.items()), 1)