def test_pantsrefs(self): sitegen.link_pantsrefs(self.soups, self.precomputed) p1_html = sitegen.render_html('subdir/page1', self.config, self.soups, self.precomputed, TEMPLATE_MUSTACHE) self.assertIn('href="../index.html#pantsmark_index"', p1_html, 'pantsref_index did not get linked') p2_html = sitegen.render_html('subdir/page2', self.config, self.soups, self.precomputed, TEMPLATE_MUSTACHE) self.assertIn('href="page1.html#an_pantsmark"', p2_html, 'pantsref_p1 did not get linked')
def test_pantsrefs(self): sitegen.link_pantsrefs(self.soups, self.precomputed) p1_html = sitegen.render_html('subdir/page1', self.config, self.soups, self.precomputed, TEMPLATE_MUSTACHE) self.assertIn('href="../index.html#pantsmark_index"', p1_html, 'pantsref_index did not get linked') p2_html = sitegen.render_html('subdir/page2', self.config, self.soups, self.precomputed, TEMPLATE_MUSTACHE) self.assertIn('href="page1.html#an_pantsmark"', p2_html, 'pantsref_p1 did not get linked')