def test_getBreadcrumbsHTML(self): view = ZodbInfoView(None, None) view.getBreadcrumbs = lambda: [('/', 'here'), ('foo>', 'so"there'), ('/', None), ('bar<baz', None)] self.assertEqual( view.getBreadcrumbsHTML(), '<a href="here">/</a>' '<a href="so"there">foo></a>' '/bar<baz')
def test_getBreadcrumbsHTML(self): view = ZodbInfoView(None, None) view.getBreadcrumbs = lambda: [('/', 'here'), ('foo>', 'so"there'), ('/', None), ('bar<baz', None)] self.assertEquals(view.getBreadcrumbsHTML(), '<a href="here">/</a>' '<a href="so"there">foo></a>' '/bar<baz')
def test_getPath(self): view = ZodbInfoView(None, None) view.getBreadcrumbs = lambda: [('/', None), ('foo', None), ('/', None), ('bar baz', None)] self.assertEquals(view.getPath(), '/foo/bar baz')
def test_getPath(self): view = ZodbInfoView(None, None) view.getBreadcrumbs = lambda: [('/', None), ('foo', None), ('/', None), ('bar baz', None)] self.assertEqual(view.getPath(), '/foo/bar baz')