#NEWLINE# def test_get_image_xml( self ) : #NEWLINE# #INDENT# request = webob . Request . blank ( '/v1.0/images/123' ) #NEWLINE# request . accept = 'application/xml' #NEWLINE# response = request . get_response ( fakes . wsgi_app ( ) ) #NEWLINE# actual_image = minidom . parseString ( response . body . replace ( '  ' , '' ) ) #NEWLINE# expected_now = actual_image . NOW_API_FORMAT #NEWLINE# expected_image = minidom . parseString ( ( '\n            <image id="123"\n                    name="public image"\n                    updated="%(expected_now)s"\n                    created="%(expected_now)s"\n                    status="ACTIVE"\n                    progress="100"\n                    xmlns="http://docs.rackspacecloud.com/servers/api/v1.0" />\n        ' % locals ( ) ) ) #NEWLINE# self . assertEqual ( expected_image . toxml ( ) , actual_image . toxml ( ) )