def test_rst_py_domain(self): text = """ Test text :py:class:`ptahcms.Node` """ self.assertIn('Test text ' '<code class="xref py py-class docutils literal">' '<span class="pre">ptahcms.Node</span></code>', rst.rst_to_html(text))
def test_rst_py_domain(self): text = """ Test text :py:class:`ptahcms.Node` """ self.assertIn('span class="pre">ptahcms.Node</span>', rst.rst_to_html(text))
def test_rst_error(self): text = """ Test text `ptahcms.Node` """ self.assertEqual( '<pre> Test text `ptahcms.Node` </pre>', rst.rst_to_html(text))
def test_rst_py_domain(self): text = """ Test text :py:class:`ptahcms.Node` """ self.assertIn('Test text :py:class:`ptahcms.Node`', rst.rst_to_html(text))
def test_rst_py_domain(self): text = """ Test text :py:class:`ptah.cms.Node` """ self.assertIn('<span class="pre">ptah.cms.Node</span>', rst.rst_to_html(text))