Module ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index Str Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr CompareEq AttributeLoad Call AttributeLoad NameLoad attr Str attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr Str attr Str Assign NameStore Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr Str attr Str decorator_list decorator_list
N/A test.util build_grab test.util BaseGrabTestCase GrabXMLProcessingTestCase N/A BaseGrabTestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A self server reset N/A test_xml_with_declaration N/A N/A self N/A N/A N/A N/A N/A N/A self server response N/A get.data <?xml version="1.0" encoding="UTF-8"?><root><foo>foo</foo></root> N/A g N/A build_grab N/A N/A N/A g go N/A N/A N/A self server get_url N/A N/A N/A self assertTrue N/A N/A N/A N/A g xpath_one //foo text foo N/A test_declaration_bug N/A N/A self N/A N/A N/A 
        1. Build Grab instance with XML with xml declaration
        2. Call search method
        3. Call xpath
        4. Get ValueError: Unicode strings with encoding
            declaration are not supported.
         N/A xml <?xml version="1.0" encoding="UTF-8"?><tree><leaf>text</leaf></tree> N/A g N/A build_grab document_body xml N/A N/A N/A self assertTrue N/A N/A g search text N/A N/A N/A self assertEqual N/A N/A N/A g xpath_one //leaf text text N/A g N/A build_grab document_body xml N/A N/A N/A self assertTrue N/A N/A g rex text N/A N/A N/A self assertEqual N/A N/A N/A g xpath_one //leaf text text N/A N/A