~ubuntu-branches/ubuntu/maverick/aptdaemon/maverick-proposed

« back to all changes in this revision

Viewing changes to aptdaemon/test/test_dpkg_journal.py

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Heinlein
  • Date: 2010-05-25 12:09:50 UTC
  • mfrom: (1.1.20 upstream)
  • Revision ID: james.westby@ubuntu.com-20100525120950-mjx614j9wj0kk08s
Tags: 0.31+bzr403-0ubuntu1
* First release of the new 0.3X development branch 
* debian/patches:
  - Remove 01_enable_component: Merged upstream
  - Remove 02_fix_errback: Merged upstream
  - Remove 04_caution_is_good: Merged upstream
  - Remove 05_conffile_not_exists: Merged upstream
  - Update 03_auth_me_less: Remove cherry-picked PolicyKit enhancements
* aptdaemon.install: Ship the man pages
* control: Fix location of vcs

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
        """ test if is_dpkg_journal_clean work correctly """
40
40
        tmpdir = tempfile.mkdtemp()
41
41
        os.mkdir(os.path.join(tmpdir,"updates"))
42
 
        apt_pkg.Config.Set("Dir::State::status", tmpdir+"/status")
 
42
        apt_pkg.config.set("Dir::State::status", tmpdir+"/status")
43
43
        open(os.path.join(tmpdir,"updates","abc"), "w").write("")
44
44
        self.assertEquals(is_dpkg_journal_clean(), True)
45
45
        open(os.path.join(tmpdir,"updates","a1b"), "w").write("")