~ubuntu-branches/ubuntu/jaunty/python-docutils/jaunty

« back to all changes in this revision

Viewing changes to test/test_writers/test_pseudoxml.py

  • Committer: Bazaar Package Importer
  • Author(s): martin f. krafft
  • Date: 2006-07-10 11:45:05 UTC
  • mfrom: (2.1.4 edgy)
  • Revision ID: james.westby@ubuntu.com-20060710114505-otkhqcslevewxmz5
Tags: 0.4-3
Added build dependency on python-central (closes: #377580).

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
# Author: Felix Wiemann
4
4
# Contact: Felix_Wiemann@ososo.de
5
 
# Revision: $Revision: 1.2 $
6
 
# Date: $Date: 2004/04/27 18:58:36 $
 
5
# Revision: $Revision: 3915 $
 
6
# Date: $Date: 2005-10-02 03:06:42 +0200 (Sun, 02 Oct 2005) $
7
7
# Copyright: This module has been placed in the public domain.
8
8
 
9
9
"""
22
22
totest['basic'] = [
23
23
# input
24
24
["""\
25
 
This is the title
26
 
=================
27
 
 
28
25
This is a paragraph.
29
26
 
30
27
----------
31
28
 
32
29
This is another paragraph.
33
30
 
34
 
A subsection
35
 
------------
 
31
A Section
 
32
---------
36
33
 
37
34
Foo.
38
35
""",
39
36
# output
40
37
"""\
41
 
<document id="this-is-the-title" name="this is the title" source="<string>">
42
 
    <title>
43
 
        This is the title
 
38
<document source="<string>">
44
39
    <paragraph>
45
40
        This is a paragraph.
46
41
    <transition>
47
42
    <paragraph>
48
43
        This is another paragraph.
49
 
    <section id="a-subsection" name="a subsection">
 
44
    <section ids="a-section" names="a\ section">
50
45
        <title>
51
 
            A subsection
 
46
            A Section
52
47
        <paragraph>
53
48
            Foo.
54
49
"""]