Ignore:
Timestamp:
03/08/09 16:55:08 (11 years ago)
Author:
pjkersha
Message:

ndg.security.common.utils: fixes to TypedList? and prettyPrint classes. prettyPrint now correctly substitutes namespace prefixes from ElementTree._namespace_map

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/python/ndg.security.test/ndg/security/test/unit/attributeauthority/saml/test_samlinterface.py

    r5538 r5550  
    4343                       [('Content-length', str(len(response))), 
    4444                        ('Content-type', 'text/xml')]) 
    45         return response 
     45        return [response] 
    4646 
    4747         
     
    119119                                 status=200) 
    120120        print response.status 
    121         print response.body 
     121 
     122        from ndg.security.common.utils import prettyPrint 
     123        soapResponse = SOAPEnvelope() 
     124        from cStringIO import StringIO 
     125        responseStream = StringIO() 
     126        responseStream.write(response.body) 
     127        responseStream.seek(0) 
     128        soapResponse.parse(responseStream) 
     129        print "Pretty print..." 
     130        print prettyPrint(soapResponse.elem) 
    122131         
    123132 
Note: See TracChangeset for help on using the changeset viewer.