diff --git a/test/test_wiki_trac_rst_convert.py b/test/test_wiki_trac_rst_convert.py index 3216e15..ce70d2a 100644 --- a/test/test_wiki_trac_rst_convert.py +++ b/test/test_wiki_trac_rst_convert.py @@ -106,6 +106,18 @@ def test_move_tocs_to_top(self): ) ) + def test_remove_content_directive_with_extra_space(self): + """ + Cleans a `contents` directive with too many spaces + between the `..` and the `contents::` part. + """ + self.assertConvertedContent( + 'Sample content', + + '.. contents::\n' + '\n' + 'Sample content' + ) def test_remove_tracwiki_pageoutline(self): """ @@ -138,20 +150,6 @@ def test_remove_tracwiki_pageoutline(self): ) ) - def test_remove_content_directive_with_extra_space(self): - """ - Cleans a `contents` directive with too many spaces - between the `..` and the `contents::` part. - """ - self.assertConvertedContent( - 'Sample content', - - '.. contents::\n' - '\n' - 'Sample content' - ) - - def test_removes_rst_wrapping(self): """ The Trac wiki syntax requires reStructuredText to be wrapped in