glance/glance/tests
Matt Riedemann 5508653052 Fix lazy translation UnicodeErrors
upload_utils is concatenating str and Message objects which doesn't work
on python 2, so change the str to a unicode object.

test_quota.py was casting Message objects to str which fails for the
same reason, so rather than cast to str, cast using six.text_type.

See oslo commit 2cfc1a78d8063cf20083cf7df796d730a576551c for history and
details on why the Message object doesn't support __str__ casting.

This is a small part of a larger effort that the oslo team will be
rolling out with graduation and adoption of the oslo-i18n library.

Closes-Bug: #1334774

Conflicts:
	glance/api/v1/upload_utils.py
	glance/tests/unit/test_quota.py

Change-Id: I9d3f29c661f1afffabbbbb499f48d37ef5a8fcee
(cherry picked from commit 834e1f2150)
2014-07-24 12:55:06 +02:00
..
etc Check first matching rule for protected properties 2014-01-22 17:41:10 +00:00
functional Provide explicit image create value for test_image_paginate case 2014-06-24 12:34:57 +02:00
integration Prevent creation of http images with invalid URIs 2014-05-30 15:38:04 +09:00
unit Fix lazy translation UnicodeErrors 2014-07-24 12:55:06 +02:00
var New -k/--insecure command line option 2012-02-13 13:57:13 +00:00
__init__.py Switch to testrepository for running tests 2014-01-29 08:30:55 +08:00
stubs.py Remove vim header 2014-01-14 16:03:28 +00:00
utils.py Return 405 when attempting DELETE on /tasks 2014-03-25 17:19:17 -04:00