~cthier/swift/s3_bucket_date

« back to all changes in this revision

Viewing changes to test/unit/container/test_server.py

  • Committer: Tarmac
  • Author(s): gholt
  • Date: 2011-07-13 20:21:58 UTC
  • mfrom: (322.1.1 xml_11)
  • Revision ID: tarmac-20110713202158-3fxzchwjyt54xgwp
Update to <?xml version="1.1"

Show diffs side-by-side

added added

removed removed

Lines of Context:
608
608
                         'HTTP_X_SIZE': 0})
609
609
            resp = self.controller.PUT(req)
610
610
            self.assertEquals(resp.status_int, 201)
611
 
        xml_body = '<?xml version="1.0" encoding="UTF-8"?>\n' \
 
611
        xml_body = '<?xml version="1.1" encoding="UTF-8"?>\n' \
612
612
            '<container name="xmlc">' \
613
613
                '<object><name>0&#x1;</name><hash>x</hash><bytes>0</bytes>' \
614
614
                    '<content_type>text/plain</content_type>' \
752
752
        req = Request.blank('/sda1/p/a/c?prefix=US-&delimiter=-&format=xml',
753
753
                environ={'REQUEST_METHOD': 'GET'})
754
754
        resp = self.controller.GET(req)
755
 
        self.assertEquals(resp.body, '<?xml version="1.0" encoding="UTF-8"?>'
 
755
        self.assertEquals(resp.body, '<?xml version="1.1" encoding="UTF-8"?>'
756
756
            '\n<container name="c"><subdir name="US-OK-"><name>US-OK-</name></subdir>'
757
757
            '<subdir name="US-TX-"><name>US-TX-</name></subdir>'
758
758
            '<subdir name="US-UT-"><name>US-UT-</name></subdir></container>')