assertIsNone used in a few client tests, fail on lucid

Bug #1215451 reported by David Britton
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Landscape Client
Fix Released
Medium
Adam Collard

Bug Description

<<< landscape.monitor.tests.test_plugin.MonitorPluginTest.test_resynchronize_with_global_scope
Stack Trace

_StringException: Text attachment: traceback
------------
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 134, in maybeDeferred
    result = f(*args, **kw)
  File "/usr/lib/python2.6/dist-packages/twisted/internet/utils.py", line 191, in runWithWarningsSuppressed
    result = f(*a, **kw)
  File "/mnt/jenkins/workspace/landscape-client-test/label/lucid-client/landscape/tests/mocker.py", line 146, in test_method_wrapper
    result = test_method()
  File "/mnt/jenkins/workspace/landscape-client-test/label/lucid-client/landscape/monitor/tests/test_plugin.py", line 79, in test_resynchronize_with_global_scope
    self.assertIsNone(self.monitor.persist.get("wubble"))
AttributeError: 'MonitorPluginTest' object has no attribute 'assertIsNone'
------------

0.19 sec 1
<<< landscape.monitor.tests.test_plugin.MonitorPluginTest.test_resynchronize_with_provided_scope
Stack Trace

_StringException: Text attachment: traceback
------------
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 134, in maybeDeferred
    result = f(*args, **kw)
  File "/usr/lib/python2.6/dist-packages/twisted/internet/utils.py", line 191, in runWithWarningsSuppressed
    result = f(*a, **kw)
  File "/mnt/jenkins/workspace/landscape-client-test/label/lucid-client/landscape/tests/mocker.py", line 146, in test_method_wrapper
    result = test_method()
  File "/mnt/jenkins/workspace/landscape-client-test/label/lucid-client/landscape/monitor/tests/test_plugin.py", line 93, in test_resynchronize_with_provided_scope
    self.assertIsNone(self.monitor.persist.get("wubble"))
AttributeError: 'MonitorPluginTest' object has no attribute 'assertIsNone'
------------

0 ms 1
<<< landscape.package.tests.test_changer.AptPackageChangerTest.test_run_gets_session_id
Stack Trace

_StringException: Text attachment: traceback
------------
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 551, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/mnt/jenkins/workspace/landscape-client-test/label/lucid-client/landscape/package/tests/test_changer.py", line 1497, in assert_session_id
    self.assertIsNotNone(self.changer._session_id)
AttributeError: 'AptPackageChangerTest' object has no attribute 'assertIsNotNone'

https://ci.landscape.canonical.com/view/Landscape%20Client/job/landscape-client-test/label=lucid-client/286/

Related branches

tags: removed: kanban
Changed in landscape-client:
status: New → In Progress
assignee: nobody → Adam Collard (adam-collard)
Changed in landscape-client:
status: In Progress → Fix Committed
David Britton (dpb)
Changed in landscape-client:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.