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

« back to all changes in this revision

Viewing changes to test/test_parsers/test_rst/test_directives/test_raw.py

  • Committer: Bazaar Package Importer
  • Author(s): Simon McVittie
  • Date: 2008-07-24 10:39:53 UTC
  • mfrom: (1.1.4 upstream) (3.1.7 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080724103953-8gh4uezg17g9ysgy
Tags: 0.5-2
* Upload docutils 0.5 to unstable
* Update rst.el to upstream Subversion r5596, which apparently fixes
  all its performance problems (17_speed_up_rst_el.dpatch, closes: #474941)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /usr/bin/env python
2
2
 
3
 
# Author: David Goodger
4
 
# Contact: goodger@users.sourceforge.net
5
 
# Revision: $Revision: 4213 $
6
 
# Date: $Date: 2005-12-14 15:51:59 +0100 (Wed, 14 Dec 2005) $
 
3
# $Id: test_raw.py 5033 2007-03-21 19:51:22Z wiemann $
 
4
# Author: David Goodger <goodger@python.org>
7
5
# Copyright: This module has been placed in the public domain.
8
6
 
9
7
"""
135
133
    <raw format="html" xml:space="preserve">
136
134
        Should the parser complain becau\xdfe there is no :file:?  BUG?
137
135
"""],
 
136
["""\
 
137
.. raw:: html
 
138
""",
 
139
"""\
 
140
<document source="test data">
 
141
    <system_message level="3" line="1" source="test data" type="ERROR">
 
142
        <paragraph>
 
143
            Content block expected for the "raw" directive; none found.
 
144
        <literal_block xml:space="preserve">
 
145
            .. raw:: html
 
146
"""],
 
147
["""\
 
148
.. raw:: html
 
149
   :file: non-existent.file
 
150
""",
 
151
"""\
 
152
<document source="test data">
 
153
    <system_message level="4" line="1" source="test data" type="SEVERE">
 
154
        <paragraph>
 
155
            Problems with "raw" directive path:
 
156
            [Errno 2] No such file or directory: 'non-existent.file'.
 
157
        <literal_block xml:space="preserve">
 
158
            .. raw:: html
 
159
               :file: non-existent.file
 
160
"""],
138
161
]
139
162
 
140
163
# Skip tests whose output contains "UnicodeDecodeError" if we are not