Updated for 2.1b2 distribution.
[python/dscho.git] / Lib / test / output / test_pyexpat
blobda0731204e3e0e5bf40acf47e845166dd6f67994
1 test_pyexpat
2 OK.
3 OK.
4 OK.
5 OK.
6 PI:
7         'xml-stylesheet' 'href="stylesheet.css"'
8 Comment:
9         ' comment data '
10 Notation declared: ('notation', None, 'notation.jpeg', None)
11 Unparsed entity decl:
12         ('unparsed_entity', None, 'entity.file', None, 'notation')
13 Start element:
14         'root' {'attr1': 'value1', 'attr2': 'value2\xe1\xbd\x80'}
15 NS decl:
16         'myns' 'http://www.python.org/namespace'
17 Start element:
18         'http://www.python.org/namespace!subelement' {}
19 Character data:
20         'Contents of subelements'
21 End element:
22         'http://www.python.org/namespace!subelement'
23 End of NS decl:
24         'myns'
25 Start element:
26         'sub2' {}
27 Start of CDATA section
28 Character data:
29         'contents of CDATA section'
30 End of CDATA section
31 End element:
32         'sub2'
33 External entity ref: (None, 'entity.file', None)
34 End element:
35         'root'
36 PI:
37         u'xml-stylesheet' u'href="stylesheet.css"'
38 Comment:
39         u' comment data '
40 Notation declared: (u'notation', None, u'notation.jpeg', None)
41 Unparsed entity decl:
42         (u'unparsed_entity', None, u'entity.file', None, u'notation')
43 Start element:
44         u'root' {u'attr1': u'value1', u'attr2': u'value2\u1f40'}
45 NS decl:
46         u'myns' u'http://www.python.org/namespace'
47 Start element:
48         u'http://www.python.org/namespace!subelement' {}
49 Character data:
50         u'Contents of subelements'
51 End element:
52         u'http://www.python.org/namespace!subelement'
53 End of NS decl:
54         u'myns'
55 Start element:
56         u'sub2' {}
57 Start of CDATA section
58 Character data:
59         u'contents of CDATA section'
60 End of CDATA section
61 End element:
62         u'sub2'
63 External entity ref: (None, u'entity.file', None)
64 End element:
65         u'root'
66 PI:
67         u'xml-stylesheet' u'href="stylesheet.css"'
68 Comment:
69         u' comment data '
70 Notation declared: (u'notation', None, u'notation.jpeg', None)
71 Unparsed entity decl:
72         (u'unparsed_entity', None, u'entity.file', None, u'notation')
73 Start element:
74         u'root' {u'attr1': u'value1', u'attr2': u'value2\u1f40'}
75 NS decl:
76         u'myns' u'http://www.python.org/namespace'
77 Start element:
78         u'http://www.python.org/namespace!subelement' {}
79 Character data:
80         u'Contents of subelements'
81 End element:
82         u'http://www.python.org/namespace!subelement'
83 End of NS decl:
84         u'myns'
85 Start element:
86         u'sub2' {}
87 Start of CDATA section
88 Character data:
89         u'contents of CDATA section'
90 End of CDATA section
91 End element:
92         u'sub2'
93 External entity ref: (None, u'entity.file', None)
94 End element:
95         u'root'
97 Testing constructor for proper handling of namespace_separator values:
98 Legal values tested o.k.
99 Caught expected TypeError:
100 ParserCreate() argument 2 must be string or None, not int
101 Caught expected ValueError:
102 namespace_separator must be one character, omitted, or None
103 Caught expected ValueError:
104 namespace_separator must be one character, omitted, or None