~ubuntu-branches/ubuntu/lucid/landscape-client/lucid

« back to all changes in this revision

Viewing changes to landscape/monitor/tests/test_activeprocessinfo.py

  • Committer: Bazaar Package Importer
  • Author(s): Free Ekanayaka
  • Date: 2009-12-16 10:50:05 UTC
  • mfrom: (1.2.2 upstream)
  • mto: This revision was merged to the branch mainline in revision 27.
  • Revision ID: james.westby@ubuntu.com-20091216105005-bmki8i2of1dmcdkc
Tags: 1.4.0-0ubuntu0.9.10.0
* New upstream release (LP: #497351)

* Bug fixes:
  - Fix landscape daemons fail to start when too many groups are
    available (LP: #456124)
  - Fix landscape programs wake up far too much. (LP: #340843)
  - Fix Package manager fails with 'no such table: task' (LP #465846)
  - Fix test suite leaving temporary files around (LP #476418)
  - Fix the 1hr long wait for user data to be uploaded following a
    resynchronisation (LP #369000)

* Add support for Ubuntu release upgrades:
  - Add helper function to fetch many files at once (LP: #450629)
  - Handle release-upgrade messages in the packagemanager
    plugin (LP: #455217)
  - Add a release-upgrader task handler (LP: #462543)
  - Support upgrade-tool environment variables (LP: #463321)

* Add initial support for Smart package locking:
  - Detect and report changes about Smart package locks (#488108)

* Packaging fixes:
  - Turn unnecessary Pre-Depends on python-gobject into a regular Depends
  - If it's empty, remove /etc/landscape upon purge

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
from twisted.internet.defer import fail
8
8
 
9
9
from landscape.monitor.activeprocessinfo import ActiveProcessInfo
10
 
from landscape.tests.helpers import (LandscapeTest, MakePathHelper,
11
 
                                     MonitorHelper, ProcessDataBuilder)
 
10
from landscape.tests.helpers import (LandscapeTest, MonitorHelper,
 
11
                                     ProcessDataBuilder)
12
12
from landscape.tests.mocker import ANY
13
13
from landscape import API
14
14
 
16
16
class ActiveProcessInfoTest(LandscapeTest):
17
17
    """Active process info plugin tests."""
18
18
 
19
 
    helpers = [MonitorHelper, MakePathHelper]
 
19
    helpers = [MonitorHelper]
20
20
 
21
21
    def setUp(self):
22
22
        """Initialize helpers and sample data builder."""
495
495
 
496
496
class PluginManagerIntegrationTest(LandscapeTest):
497
497
 
498
 
    helpers = [MonitorHelper, MakePathHelper]
 
498
    helpers = [MonitorHelper]
499
499
 
500
500
    def setUp(self):
501
501
        LandscapeTest.setUp(self)
502
 
        self.sample_dir = self.make_dir()
 
502
        self.sample_dir = self.makeDir()
503
503
        self.builder = ProcessDataBuilder(self.sample_dir)
504
504
        self.mstore.set_accepted_types(["active-process-info",
505
505
                                        "operation-result"])