~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_date.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@python.org
5
 
# Revision: $Revision: 4229 $
6
 
# Date: $Date: 2005-12-23 00:46:16 +0100 (Fri, 23 Dec 2005) $
 
3
# $Id: test_date.py 4667 2006-07-12 21:40:56Z wiemann $
 
4
# Author: David Goodger <goodger@python.org>
7
5
# Copyright: This module has been placed in the public domain.
8
6
 
9
7
"""
45
43
    <substitution_definition names="date">
46
44
        %s
47
45
""" % time.strftime('%a, %d %b %Y')],
 
46
["""\
 
47
.. date::
 
48
""",
 
49
"""\
 
50
<document source="test data">
 
51
    <system_message level="3" line="1" source="test data" type="ERROR">
 
52
        <paragraph>
 
53
            Invalid context: the "date" directive can only be used within a substitution definition.
 
54
        <literal_block xml:space="preserve">
 
55
            .. date::
 
56
"""],
48
57
]
49
58
 
50
59