source: exist/trunk/python/elementtree-1.3a6-20070212-badc/unittests/test_xmlparser.py @ 3429

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/exist/trunk/python/elementtree-1.3a6-20070212-badc/unittests/test_xmlparser.py@4663
Revision 3429, 438 bytes checked in by pjkersha, 12 years ago (diff)

Added latest ElementTree version (12/2/08) from Fredrik Lundh

Line 
1# $Id: test_xmlparser.py 3298 2007-09-13 14:38:02Z fredrik $
2
3from support import *
4
5def bug_200708_version():
6    """
7    >>> parser = ET.XMLParser()
8    >>> parser.version
9    'Expat 2.0.0'
10    >>> parser.feed(open("samples/simple.xml").read())
11    >>> print serialize(parser.close())
12    <root>
13       <element key="value">text</element>
14       <element>text</element>tail
15       <empty-element />
16    </root>
17    """
Note: See TracBrowser for help on using the repository browser.