%PDF- %PDF-
Direktori : /usr/local/lib/python2.7/test/ |
Current File : //usr/local/lib/python2.7/test/test_pyexpat.pyo |
ó Nêáac @ s– d d l Z d d l Z d d l Z d d l m Z d d l m Z d d l m Z m Z d e j f d „ ƒ YZ d Z d e j f d „ ƒ YZ d e j f d „ ƒ YZ d e j f d „ ƒ YZ d e j f d „ ƒ YZ d e j f d „ ƒ YZ d e j f d „ ƒ YZ d e j f d „ ƒ YZ d e j f d „ ƒ YZ d e j f d „ ƒ YZ d e j f d „ ƒ YZ d „ Z e d k r’e ƒ n d S( iÿÿÿÿN( t expat( t test_support( t sortdictt run_unittestt SetAttributeTestc B sG e Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( c C s t j d d ƒ | _ d S( Nt namespace_separatort !( R t ParserCreatet parser( t self( ( s- /usr/local/lib/python2.7/test/test_pyexpat.pyt setUp s c C sS | j | j j t ƒ x6 d D]. } | | j _ | j | j j t | ƒ ƒ q Wd S( Ni i i ( i i i i ( t assertIsR t buffer_textt Falset bool( R t x( ( s- /usr/local/lib/python2.7/test/test_pyexpat.pyt test_buffer_text s c C sS | j | j j t ƒ x6 d D]. } | | j _ | j | j j t | ƒ ƒ q Wd S( Ni i i ( i i i i ( R R t namespace_prefixesR R ( R R ( ( s- /usr/local/lib/python2.7/test/test_pyexpat.pyt test_namespace_prefixes s c C sV | j | j j t j ƒ x6 d D]. } | | j _ | j | j j t | ƒ ƒ q Wd S( Ni i i ( i i i i ( R R t returns_unicodeR t have_unicodeR ( R R ( ( s- /usr/local/lib/python2.7/test/test_pyexpat.pyt test_returns_unicode s c C sS | j | j j t ƒ x6 d D]. } | | j _ | j | j j t | ƒ ƒ q Wd S( Ni i i ( i i i i ( R R t ordered_attributesR R ( R R ( ( s- /usr/local/lib/python2.7/test/test_pyexpat.pyt test_ordered_attributes# s c C sS | j | j j t ƒ x6 d D]. } | | j _ | j | j j t | ƒ ƒ q Wd S( Ni i i ( i i i i ( R R t specified_attributesR R ( R R ( ( s- /usr/local/lib/python2.7/test/test_pyexpat.pyt test_specified_attributes) s c C sF | j t ƒ d | j _ Wd QX| j t ƒ | j j Wd QXd S( Ni ( t assertRaisest AttributeErrorR t foo( R ( ( s- /usr/local/lib/python2.7/test/test_pyexpat.pyt test_invalid_attributes/ s ( t __name__t __module__R R R R R R R ( ( ( s- /usr/local/lib/python2.7/test/test_pyexpat.pyR s sn <?xml version="1.0" encoding="iso-8859-1" standalone="no"?> <?xml-stylesheet href="stylesheet.css"?> <!-- comment data --> <!DOCTYPE quotations SYSTEM "quotations.dtd" [ <!ELEMENT root ANY> <!NOTATION notation SYSTEM "notation.jpeg"> <!ENTITY acirc "â"> <!ENTITY external_entity SYSTEM "entity.file"> <!ENTITY unparsed_entity SYSTEM "entity.file" NDATA notation> %unparsed_entity; ]> <root attr1="value1" attr2="value2ὀ"> <myns:subelement xmlns:myns="http://www.python.org/namespace"> Contents of subelements </myns:subelement> <sub2><![CDATA[contents of CDATA section]]></sub2> &external_entity; </root> t ParseTestc B so e Z d d d „ ƒ YZ d d d d d d d d d d d d d d g Z d „ Z d „ Z d „ Z d „ Z RS( t Outputterc B s˜ e Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( c C s g | _ d S( N( t out( R ( ( s- /usr/local/lib/python2.7/test/test_pyexpat.pyt __init__P s c C s, | j j d t | ƒ d t | ƒ ƒ d S( Ns Start element: t ( R"