Example #1
0
    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))
Example #2
0
    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))
Example #3
0
    def test_rst_error(self):
        text = """ Test text `ptahcms.Node` """

        self.assertEqual(
            '<pre> Test text `ptahcms.Node` </pre>', rst.rst_to_html(text))
Example #4
0
    def test_rst_error(self):
        text = """ Test text `ptahcms.Node` """

        self.assertEqual(
            '<pre> Test text `ptahcms.Node` </pre>', rst.rst_to_html(text))
Example #5
0
    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))
Example #6
0
    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))