From 7b6b85aef818e64875d510edc72ab78a58e41b97 Mon Sep 17 00:00:00 2001 From: gholt Date: Fri, 10 Jun 2011 19:33:53 +0000 Subject: [PATCH] Update staticweb generated test data to match utf-8 update --- test/unit/common/middleware/test_staticweb.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/unit/common/middleware/test_staticweb.py b/test/unit/common/middleware/test_staticweb.py index 7b5385da71..55ff3959fa 100644 --- a/test/unit/common/middleware/test_staticweb.py +++ b/test/unit/common/middleware/test_staticweb.py @@ -187,7 +187,7 @@ class FakeApp(object): headers.update({'X-Container-Object-Count': '11', 'X-Container-Bytes-Used': '73741', 'X-Container-Read': '.r:*', - 'Content-Type': 'application/json; charset=utf8'}) + 'Content-Type': 'application/json; charset=utf-8'}) body = ''' [{"name":"subdir/1.txt", "hash":"5f595114a4b3077edfac792c61ca4fe4", "bytes":20, @@ -204,14 +204,14 @@ class FakeApp(object): headers.update({'X-Container-Object-Count': '11', 'X-Container-Bytes-Used': '73741', 'X-Container-Read': '.r:*', - 'Content-Type': 'application/json; charset=utf8'}) + 'Content-Type': 'application/json; charset=utf-8'}) body = '[]' elif env['PATH_INFO'] == '/v1/a/c3' and env['QUERY_STRING'] == \ 'limit=1&format=json&delimiter=/&limit=1&prefix=subdirz/': headers.update({'X-Container-Object-Count': '11', 'X-Container-Bytes-Used': '73741', 'X-Container-Read': '.r:*', - 'Content-Type': 'application/json; charset=utf8'}) + 'Content-Type': 'application/json; charset=utf-8'}) body = ''' [{"name":"subdirz/1.txt", "hash":"5f595114a4b3077edfac792c61ca4fe4", "bytes":20, @@ -224,7 +224,7 @@ class FakeApp(object): 'X-Container-Bytes-Used': '73741', 'X-Container-Read': '.r:*', 'X-Container-Web-Listings': 't', - 'Content-Type': 'application/json; charset=utf8'}) + 'Content-Type': 'application/json; charset=utf-8'}) body = ''' [{"name":"subdir/1.txt", "hash":"5f595114a4b3077edfac792c61ca4fe4", "bytes":20, @@ -236,7 +236,7 @@ class FakeApp(object): elif 'format=json' in env['QUERY_STRING']: headers.update({'X-Container-Object-Count': '11', 'X-Container-Bytes-Used': '73741', - 'Content-Type': 'application/json; charset=utf8'}) + 'Content-Type': 'application/json; charset=utf-8'}) body = ''' [{"name":"401error.html", "hash":"893f8d80692a4d3875b45be8f152ad18", "bytes":110, @@ -283,7 +283,7 @@ class FakeApp(object): else: headers.update({'X-Container-Object-Count': '11', 'X-Container-Bytes-Used': '73741', - 'Content-Type': 'text/plain; charset=utf8'}) + 'Content-Type': 'text/plain; charset=utf-8'}) body = '\n'.join(['401error.html', '404error.html', 'index.html', 'listing.css', 'one.txt', 'subdir/1.txt', 'subdir/2.txt', 'subdir/omgomg.txt', 'subdir2',