Exemplo n.º 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))
Exemplo n.º 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))
Exemplo n.º 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))
Exemplo n.º 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))
Exemplo n.º 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))
Exemplo n.º 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))