← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1212625] Re: 'str' object has no attribute 'AndReturn'

 

In milestone-proposed at https://review.openstack.org/#/c/50832/

** Changed in: glance
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1212625

Title:
  'str' object has no attribute 'AndReturn'

Status in OpenStack Image Registry and Delivery Service (Glance):
  Fix Released

Bug description:
  
  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'

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1212625/+subscriptions