~bigkevmcd/landscape-client/bootstrap-with-userdata-ca

« back to all changes in this revision

Viewing changes to landscape/package/tests/test_taskhandler.py

  • Committer: free.ekanayaka at gmail
  • Date: 2009-03-16 10:30:07 UTC
  • mto: This revision was merged to the branch mainline in revision 94.
  • Revision ID: free.ekanayaka@gmail.com-20090316103007-81x2uke9t3s40pqg
Change the term lookaside database with hash-id database

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
        self.handler.ensure_channels_reloaded()
50
50
        self.assertTrue(self.facade.get_packages_by_name("name1")[0].installed)
51
51
 
52
 
    def test_use_lookaside_db(self):
 
52
    def test_use_hash_id_db(self):
53
53
 
54
 
        lookaside_directory = os.path.join(self.config.data_path,
55
 
                                           "package/lookaside")
56
 
        os.makedirs(lookaside_directory)
57
 
        lookaside_filename = os.path.join(lookaside_directory,
 
54
        hash_id_db_directory = os.path.join(self.config.data_path,
 
55
                                           "package/hash-id")
 
56
        os.makedirs(hash_id_db_directory)
 
57
        hash_id_db_filename = os.path.join(hash_id_db_directory,
58
58
                                          "fake-uuid_hardy_i386")
59
 
        PackageStore(lookaside_filename).set_hash_ids({"hash": 123})
 
59
        PackageStore(hash_id_db_filename).set_hash_ids({"hash": 123})
60
60
        codename_mock = self.mocker.replace("landscape.package."
61
61
                                            "taskhandler.get_host_codename")
62
62
        codename_mock()
74
74
 
75
75
        self.mocker.replay()
76
76
 
77
 
        self.handler.use_lookaside_db()
 
77
        self.handler.use_hash_id_db()
78
78
 
79
79
        deferred.callback("fake-uuid")
80
80