[Docstring-checkins] CVS: dps/test/test_transforms test_doctitle.py,1.3,1.4
Status: Pre-Alpha
Brought to you by:
goodger
From: David G. <go...@us...> - 2002-02-12 02:11:03
|
Update of /cvsroot/docstring/dps/test/test_transforms In directory usw-pr-cvs1:/tmp/cvs-serv29231/dps/test/test_transforms Modified Files: test_doctitle.py Log Message: updated; removed a lot of useless tests Index: test_doctitle.py =================================================================== RCS file: /cvsroot/docstring/dps/test/test_transforms/test_doctitle.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** test_doctitle.py 6 Feb 2002 03:10:48 -0000 1.3 --- test_doctitle.py 12 Feb 2002 02:11:00 -0000 1.4 *************** *** 77,96 **** """], ["""\ ! Test unexpected section title. ! Title ! ===== ! Paragraph. """, """\ ! <document> <paragraph> ! Test unexpected section title. ! <block_quote> ! <system_warning level="4" type="SEVERE"> ! <paragraph> ! Unexpected section title at line 4. ! <paragraph> ! Paragraph. """], ["""\ --- 77,96 ---- """], ["""\ ! Title ! ===== ! Subtitle ! -------- ! ! Test title & subtitle. """, """\ ! <document name="title"> ! <title> ! Title ! <subtitle name="subtitle"> ! Subtitle <paragraph> ! Test title & subtitle. """], ["""\ *************** *** 111,170 **** """], ["""\ - ===== - Title - ===== - - Test overline title. - """, - """\ - <document name="title"> - <title> - Title - <paragraph> - Test overline title. - """], - ["""\ - ======= - Title - ======= - - Test overline title with inset. - """, - """\ - <document name="title"> - <title> - Title - <paragraph> - Test overline title with inset. - """], - ["""\ - ======================== - Test Missing Underline - - Paragraph. - """, - """\ - <document> - <system_warning level="4" type="SEVERE"> - <paragraph> - Missing underline for overline at line 1. - <paragraph> - Paragraph. - """], - ["""\ - ======= - Title - - Test missing underline, with paragraph. - """, - """\ - <document> - <system_warning level="4" type="SEVERE"> - <paragraph> - Missing underline for overline at line 1. - <paragraph> - Test missing underline, with paragraph. - """], - ["""\ ======= Long Title --- 111,114 ---- *************** *** 172,175 **** --- 116,121 ---- Test long title and space normalization. + The system_warning should move after the document title + (it was before the beginning of the section). """, """\ *************** *** 182,339 **** <paragraph> Test long title and space normalization. """], ["""\ ! ======= ! Title ! ------- ! ! Paragraph. ! """, ! """\ ! <document> ! <system_warning level="4" type="SEVERE"> ! <paragraph> ! Title overline & underline mismatch at line 1. ! <paragraph> ! Paragraph. ! """], ! ["""\ ! .. Test return to existing, highest-level section (Title 3). ! ! Title 1 ! ======= ! Paragraph 1. ! ! Title 2 ! ------- ! Paragraph 2. ! ! Title 3 ! ======= ! Paragraph 3. ! ! Title 4 ! ------- ! Paragraph 4. ! """, ! """\ ! <document> ! <comment> ! Test return to existing, highest-level section (Title 3). ! <section name="title 1"> ! <title> ! Title 1 ! <paragraph> ! Paragraph 1. ! <section name="title 2"> ! <title> ! Title 2 ! <paragraph> ! Paragraph 2. ! <section name="title 3"> ! <title> ! Title 3 ! <paragraph> ! Paragraph 3. ! <section name="title 4"> ! <title> ! Title 4 ! <paragraph> ! Paragraph 4. ! """], ! ["""\ ! Test return to existing, highest-level section (Title 3, with overlines). ! ! ======= ! Title 1 ! ======= ! Paragraph 1. ! ! ------- ! Title 2 ! ------- ! Paragraph 2. ! ! ======= ! Title 3 ! ======= ! Paragraph 3. ! ! ------- ! Title 4 ! ------- ! Paragraph 4. ! """, ! """\ ! <document> ! <paragraph> ! Test return to existing, highest-level section (Title 3, with overlines). ! <section name="title 1"> ! <title> ! Title 1 ! <paragraph> ! Paragraph 1. ! <section name="title 2"> ! <title> ! Title 2 ! <paragraph> ! Paragraph 2. ! <section name="title 3"> ! <title> ! Title 3 ! <paragraph> ! Paragraph 3. ! <section name="title 4"> ! <title> ! Title 4 ! <paragraph> ! Paragraph 4. ! """], ! ["""\ ! Test return to existing, higher-level section (Title 4). ! ! Title 1 ! ======= ! Paragraph 1. ! ! Title 2 ! ------- ! Paragraph 2. ! ! Title 3 ! ``````` ! Paragraph 3. ! ! Title 4 ! ------- ! Paragraph 4. ! """, ! """\ ! <document> ! <paragraph> ! Test return to existing, higher-level section (Title 4). ! <section name="title 1"> ! <title> ! Title 1 ! <paragraph> ! Paragraph 1. ! <section name="title 2"> ! <title> ! Title 2 ! <paragraph> ! Paragraph 2. ! <section name="title 3"> ! <title> ! Title 3 ! <paragraph> ! Paragraph 3. ! <section name="title 4"> ! <title> ! Title 4 ! <paragraph> ! Paragraph 4. ! """], ! ["""\ ! Test bad subsection order (Title 4). Title 1 --- 128,136 ---- <paragraph> Test long title and space normalization. + The system_warning should move after the document title + (it was before the beginning of the section). """], ["""\ ! .. Test multiple second-level titles. Title 1 *************** *** 346,421 **** Title 3 - ======= - Paragraph 3. - - Title 4 - ``````` - Paragraph 4. - """, - """\ - <document> - <paragraph> - Test bad subsection order (Title 4). - <section name="title 1"> - <title> - Title 1 - <paragraph> - Paragraph 1. - <section name="title 2"> - <title> - Title 2 - <paragraph> - Paragraph 2. - <section name="title 3"> - <title> - Title 3 - <paragraph> - Paragraph 3. - <system_warning level="4" type="SEVERE"> - <paragraph> - Title level inconsistent at line 15: - <literal_block> - Title 4 - ``````` - <paragraph> - Paragraph 4. - """], - ["""\ - Test bad subsection order (Title 4, with overlines). - - ======= - Title 1 - ======= - Paragraph 1. - ------- - Title 2 - ------- - Paragraph 2. - - ======= - Title 3 - ======= Paragraph 3. - - ``````` - Title 4 - ``````` - Paragraph 4. """, """\ ! <document> <paragraph> ! Test bad subsection order (Title 4, with overlines). ! <section name="title 1"> <title> ! Title 1 <paragraph> ! Paragraph 1. ! <section name="title 2"> ! <title> ! Title 2 ! <paragraph> ! Paragraph 2. <section name="title 3"> <title> --- 143,162 ---- Title 3 ------- Paragraph 3. """, """\ ! <document name="title 1"> ! <title> ! Title 1 ! <comment> ! Test multiple second-level titles. <paragraph> ! Paragraph 1. ! <section name="title 2"> <title> ! Title 2 <paragraph> ! Paragraph 2. <section name="title 3"> <title> *************** *** 423,435 **** <paragraph> Paragraph 3. - <system_warning level="4" type="SEVERE"> - <paragraph> - Title level inconsistent at line 19: - <literal_block> - ``````` - Title 4 - ``````` - <paragraph> - Paragraph 4. """], ]) --- 164,167 ---- |