~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_contents.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: 3915 $
6
 
# Date: $Date: 2005-10-02 03:06:42 +0200 (Sun, 02 Oct 2005) $
 
3
# $Id: test_contents.py 4631 2006-06-22 19:05:20Z goodger $
 
4
# Author: David Goodger <goodger@python.org>
7
5
# Copyright: This module has been placed in the public domain.
8
6
 
9
7
"""
153
151
        <paragraph>
154
152
            Error in "contents" directive:
155
153
            invalid option value: (option: "depth"; value: 'two')
156
 
            invalid literal for int(): two.
 
154
            %s.
157
155
        <literal_block xml:space="preserve">
158
156
            .. contents::
159
157
               :depth: two
160
 
"""],
 
158
""" % DocutilsTestSupport.exception_data('int("two")')[1][0]],
161
159
["""\
162
160
.. contents::
163
161
   :width: 2