Spelling fixes
[docutils.git] / test / test_parsers / test_rst / test_paragraphs.py
blobcb667357daa79299e9d660e63f182ef5cf620822
1 #! /usr/bin/env python
3 # $Id$
4 # Author: David Goodger <goodger@python.org>
5 # Copyright: This module has been placed in the public domain.
7 """
8 Tests for states.py.
9 """
11 from __init__ import DocutilsTestSupport
13 def suite():
14 s = DocutilsTestSupport.ParserTestSuite()
15 s.generateTests(totest)
16 return s
18 totest = {}
20 totest['paragraphs'] = [
21 ["""\
22 A paragraph.
23 """,
24 """\
25 <document source="test data">
26 <paragraph>
27 A paragraph.
28 """],
29 ["""\
30 Paragraph 1.
32 Paragraph 2.
33 """,
34 """\
35 <document source="test data">
36 <paragraph>
37 Paragraph 1.
38 <paragraph>
39 Paragraph 2.
40 """],
41 ["""\
42 Line 1.
43 Line 2.
44 Line 3.
45 """,
46 """\
47 <document source="test data">
48 <paragraph>
49 Line 1.
50 Line 2.
51 Line 3.
52 """],
53 ["""\
54 Paragraph 1, Line 1.
55 Line 2.
56 Line 3.
58 Paragraph 2, Line 1.
59 Line 2.
60 Line 3.
61 """,
62 """\
63 <document source="test data">
64 <paragraph>
65 Paragraph 1, Line 1.
66 Line 2.
67 Line 3.
68 <paragraph>
69 Paragraph 2, Line 1.
70 Line 2.
71 Line 3.
72 """],
73 ["""\
74 A. Einstein was a really
75 smart dude.
76 """,
77 """\
78 <document source="test data">
79 <paragraph>
80 A. Einstein was a really
81 smart dude.
82 """],
85 if __name__ == '__main__':
86 import unittest
87 unittest.main(defaultTest='suite')