← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1078473] Re: Python 2.6 assertIn/NotIn

 

** Changed in: cloud-init
       Status: Fix Committed => Fix Released

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

Title:
  Python 2.6 assertIn/NotIn

Status in Init scripts for use on cloud images:
  Fix Released

Bug description:
  Some tests are failing on 2.6 due to the following:

  
  ======================================================================
  ERROR: test_message_present (tests.unittests.test_handler.test_handler_power_state.TestLoadPowerState)
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "/homes/harlowja/dev/os/cloud-init/tests/unittests/test_handler/test_handler_power_state.py", line 51, in test_message_present
      self.assertIn(cfg['power_state']['message'], ret[0])
  AttributeError: 'TestLoadPowerState' object has no attribute 'assertIn'

  ======================================================================
  ERROR: test_no_message (tests.unittests.test_handler.test_handler_power_state.TestLoadPowerState)
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "/homes/harlowja/dev/os/cloud-init/tests/unittests/test_handler/test_handler_power_state.py", line 57, in test_no_message
      self.assertNotIn("", cmd)
  AttributeError: 'TestLoadPowerState' object has no attribute 'assertNotIn'

  ----------------------------------------------------------------------
  Ran 165 tests in 1.275s

  FAILED (errors=2)
  gmake: *** [test] Error 1

  
  Seems like these were added in 2.7.

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1078473/+subscriptions