~ubuntu-branches/ubuntu/utopic/python-docutils/utopic

« back to all changes in this revision

Viewing changes to test/test_writers/test_html4css1_misc.py

  • Committer: Package Import Robot
  • Author(s): Dmitry Shachnev
  • Date: 2012-10-19 18:23:15 UTC
  • mfrom: (1.2.1) (11.1.6 experimental)
  • Revision ID: package-import@ubuntu.com-20121019182315-ln3lvct1pqq7mzgm
Tags: 0.9.1+svn7532-0ubuntu1
* Resynchronize with Debian packaging SVN, remaining change:
  - Use dh_python2 instead of dh_pysupport.
* New snapshot from upstream SVN, fixes build with Python 3.3.
* Add XS-Testsuite header.
* debian/patches/move-data-to-usr-share.diff: unfuzz.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /usr/bin/env python
2
2
 
3
 
# $Id: test_html4css1_misc.py 5889 2009-04-01 20:00:21Z gbrandl $
4
 
# Author: Lea Wiemann <LeWiemann@gmail.com>
 
3
# $Id$
 
4
# Author: Lea Wiemann
 
5
# Maintainer: docutils-develop@lists.sourceforge.net
5
6
# Copyright: This module has been placed in the public domain.
6
7
 
7
8
"""
21
22
        settings_overrides={
22
23
            'output_encoding': 'latin1',
23
24
            'stylesheet': '',
24
 
            '_disable_config': 1,}
 
25
            '_disable_config': True,}
25
26
        result = core.publish_string(
26
 
            b('EUR = \xe2\x82\xac'), writer_name='html4css1',
 
27
            u'EUR = \u20ac', writer_name='html4css1',
27
28
            settings_overrides=settings_overrides)
28
29
        # Encoding a euro sign with latin1 doesn't work, so the
29
30
        # xmlcharrefreplace handler is used.
30
 
        self.assert_(result.find(b('EUR = &#8364;')) != -1)
 
31
        self.assertNotEqual(result.find(b('EUR = &#8364;')), -1)
31
32
 
32
33
 
33
34
if __name__ == '__main__':