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

« back to all changes in this revision

Viewing changes to landscape/lib/tests/test_disk.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:
8
8
 
9
9
    def setUp(self):
10
10
        super(DiskUtilitiesTest, self).setUp()
11
 
        self.mount_file = self.make_path("")
 
11
        self.mount_file = self.makeFile("")
12
12
        self.stat_results = {}
13
13
        self.statvfs = self.stat_results.get
14
14
 
43
43
        self.assertEquals(info["mount-point"], "/")
44
44
 
45
45
    def test_symlink_home(self):
46
 
        symlink_path = self.make_path()
 
46
        symlink_path = self.makeFile()
47
47
        os.symlink("/foo/bar", symlink_path)
 
48
        self.addCleanup(os.remove, symlink_path)
48
49
        self.set_mount_points(["/", "/foo"])
49
50
        info = get_filesystem_for_path(symlink_path,
50
51
                                       self.mount_file, self.statvfs)