def test_render(self):
     bcr = BreacrumbRender('/pages')
     self.assertEqual('<li >    <a href="/pages/index.md">Home</a></li>',
                      bcr.render_path([]))
 def test_build_tuples_empty(self):
     bcr = BreacrumbRender('/pages')
     real = [it for it in bcr.build_tuples([])]
     expected = [([], 'Home')]
     self.print_and_assert(real, expected)
 def test_build_tuples_1(self):
     bcr = BreacrumbRender('/pages')
     item_name = 'Item1'
     real = [it for it in bcr.build_tuples([item_name])]
     expected = [([], 'Home'), ([item_name], item_name)]
     self.print_and_assert(real, expected)