Beispiel #1
0
 def test_fixup_internal_links(self):
   sitegen.fixup_internal_links(self.config, self.soups)
   html = sitegen.render_html('index',
                              self.config,
                              self.soups,
                              self.precomputed,
                              TEMPLATE_MUSTACHE)
   self.assertIn('subdir/page1.html', html,
                 'p1.html link did not get fixed up to page1.html')
Beispiel #2
0
 def test_fixup_internal_links(self):
   sitegen.fixup_internal_links(self.config, self.soups)
   html = sitegen.render_html('index',
                              self.config,
                              self.soups,
                              self.precomputed,
                              TEMPLATE_MUSTACHE)
   self.assertIn('subdir/page1.html', html,
                 'p1.html link did not get fixed up to page1.html')