def test_root_at(self):
        t = TreeNode.read(io.StringIO("(((a,b)c,(d,e)f)g,h)i;"))
        with self.assertRaises(TreeError):
            t.root_at(t.find('h'))

        exp = "(a,b,((d,e)f,(h)g)c)root;\n"
        rooted = t.root_at('c')
        obs = str(rooted)
        self.assertEqual(obs, exp)
Render the ReStructuredText into html. Will pre-render template code first.
dataset/ETHPy150Open biocore/scikit-bio/skbio/tree/tests/test_tree.py/TreeTests.test_root_at--crossover with--dataset/ETHPy150Open amarandon/smeuhsocial/apps/blog/templatetags/restructuredtext.py/rest_tag