~free.ekanayaka/landscape-client/lucid-1.4.4-0ubuntu0.10.04

« back to all changes in this revision

Viewing changes to landscape/user/tests/test_changes.py

  • Committer: Bazaar Package Importer
  • Author(s): Free Ekanayaka
  • Date: 2009-12-16 10:50:05 UTC
  • mfrom: (1.1.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20091216105005-svplwdorkgz6vja7
Tags: 1.4.0-0ubuntu0.10.04.0
* New upstream release with several 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:
2
2
from landscape.user.changes import UserChanges
3
3
from landscape.user.tests.helpers import FakeUserInfo, FakeUserProvider
4
4
 
5
 
from landscape.tests.helpers import (LandscapeTest, MonitorHelper,
6
 
    MakePathHelper)
 
5
from landscape.tests.helpers import LandscapeTest, MonitorHelper
7
6
 
8
7
 
9
8
class UserChangesTest(LandscapeTest):
10
9
 
11
 
    helpers = [MonitorHelper, MakePathHelper]
 
10
    helpers = [MonitorHelper]
12
11
 
13
12
    def setUp(self):
14
13
        super(UserChangesTest, self).setUp()
15
14
        self.persist = Persist()
16
 
        self.shadow_file = self.make_path("""\
 
15
        self.shadow_file = self.makeFile("""\
17
16
jdoe:$1$xFlQvTqe$cBtrNEDOIKMy/BuJoUdeG0:13348:0:99999:7:::
18
17
psmith:!:13348:0:99999:7:::
19
18
sbarnes:$1$q7sz09uw$q.A3526M/SHu8vUb.Jo1A/:13349:0:99999:7:::