コード例 #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))
コード例 #2
0
ファイル: test_rst.py プロジェクト: webmaven/ptah
    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))
コード例 #3
0
ファイル: test_rst.py プロジェクト: webmaven/ptah
    def test_rst_error(self):
        text = """ Test text `ptahcms.Node` """

        self.assertEqual(
            '<pre> Test text `ptahcms.Node` </pre>', rst.rst_to_html(text))
コード例 #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))
コード例 #5
0
ファイル: test_rst.py プロジェクト: carlicos/ptah
    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))
コード例 #6
0
ファイル: test_rst.py プロジェクト: runyaga/ptah
    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))