diff --git a/test/functional/test_container.py b/test/functional/test_container.py index c9e9b4239f..c9b59db126 100644 --- a/test/functional/test_container.py +++ b/test/functional/test_container.py @@ -68,9 +68,9 @@ class TestContainer(unittest2.TestCase): return check_response(conn) def delete(url, token, parsed, conn, container, obj): - conn.request( - 'DELETE', '/'.join([parsed.path, container, obj['name']]), '', - {'X-Auth-Token': token}) + path = '/'.join([parsed.path, container, + obj['name'].encode('utf8')]) + conn.request('DELETE', path, '', {'X-Auth-Token': token}) return check_response(conn) for container in (self.name, self.container): diff --git a/test/functional/test_object.py b/test/functional/test_object.py index 796846d565..0e99b21dc0 100644 --- a/test/functional/test_object.py +++ b/test/functional/test_object.py @@ -104,9 +104,9 @@ class TestObject(unittest2.TestCase): # delete an object def delete(url, token, parsed, conn, container, obj): - conn.request( - 'DELETE', '/'.join([parsed.path, container, obj['name']]), '', - {'X-Auth-Token': token}) + path = '/'.join([parsed.path, container, + obj['name'].encode('utf8')]) + conn.request('DELETE', path, '', {'X-Auth-Token': token}) return check_response(conn) for container in self.containers: