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

« back to all changes in this revision

Viewing changes to landscape/user/tests/test_management.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:
2
2
from landscape.user.management import UserManagement, UserManagementError
3
3
from landscape.user.tests.helpers import FakeUserProvider
4
4
from landscape.user.provider import UserNotFoundError, GroupNotFoundError
5
 
from landscape.tests.helpers import LandscapeTest, MakePathHelper, MockPopen
 
5
from landscape.tests.helpers import LandscapeTest, MockPopen
6
6
 
7
7
 
8
8
def guess_password(generated_password, plaintext_password):
13
13
 
14
14
class UserWriteTest(LandscapeTest):
15
15
 
16
 
    helpers = [MakePathHelper]
17
 
 
18
16
    def setUp(self):
19
17
        LandscapeTest.setUp(self)
20
 
        self.shadow_file = self.make_path("""\
 
18
        self.shadow_file = self.makeFile("""\
21
19
jdoe:$1$xFlQvTqe$cBtrNEDOIKMy/BuJoUdeG0:13348:0:99999:7:::
22
20
psmith:!:13348:0:99999:7:::
23
21
sbarnes:$1$q7sz09uw$q.A3526M/SHu8vUb.Jo1A/:13349:0:99999:7:::
380
378
 
381
379
class GroupWriteTest(LandscapeTest):
382
380
 
383
 
    helpers = [MakePathHelper]
384
 
 
385
381
    def setUp(self):
386
382
        LandscapeTest.setUp(self)
387
 
        self.shadow_file = self.make_path("""\
 
383
        self.shadow_file = self.makeFile("""\
388
384
jdoe:$1$xFlQvTqe$cBtrNEDOIKMy/BuJoUdeG0:13348:0:99999:7:::
389
385
psmith:!:13348:0:99999:7:::
390
386
sbarnes:$1$q7sz09uw$q.A3526M/SHu8vUb.Jo1A/:13349:0:99999:7:::