Fix up for review here: https://review.openstack.org/#/c/49526/
======================================================================
ERROR: glance.tests.unit.test_store_image.TestStoreAddToBackend.test_bad_metadata_not_dict
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
File "/opt/stack/glance/glance/tests/unit/test_store_image.py", line 788, in test_bad_metadata_not_dict
store.__str__().AndReturn(('hello'))
AttributeError: 'str' object has no attribute 'AndReturn'
======================================================================
ERROR: glance.tests.unit.test_store_image.TestStoreAddToBackend.test_bad_nonunicode_dict_list
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
File "/opt/stack/glance/glance/tests/unit/test_store_image.py", line 782, in test_bad_nonunicode_dict_list
self._bad_metadata(m)
File "/opt/stack/glance/glance/tests/unit/test_store_image.py", line 713, in _bad_metadata
store.__str__().AndReturn(('hello'))
AttributeError: 'str' object has no attribute 'AndReturn'
======================================================================
ERROR: glance.tests.unit.test_store_image.TestStoreAddToBackend.test_bad_top_level_nonunicode
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
File "/opt/stack/glance/glance/tests/unit/test_store_image.py", line 776, in test_bad_top_level_nonunicode
self._bad_metadata(metadata)
File "/opt/stack/glance/glance/tests/unit/test_store_image.py", line 713, in _bad_metadata
store.__str__().AndReturn(('hello'))
AttributeError: 'str' object has no attribute 'AndReturn'
After the "bug 1213014" is check-in, this issue will be resolved.