~flexiondotorg/aptdaemon/aptdaemon-lp1623856

« back to all changes in this revision

Viewing changes to tests/test_high_trust_repository_whitelist.py

  • Committer: Sebastian Heinlein
  • Date: 2012-12-29 18:47:37 UTC
  • mto: This revision was merged to the branch mainline in revision 884.
  • Revision ID: devel@glatzor.de-20121229184737-laxh1h8mowq7znpa
Rename transaction_only_installs_packages_from_high_trusted_repos to a shorter name

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
from aptdaemon.worker import (
41
41
    _read_high_trust_repository_whitelist_file,
42
42
    read_high_trust_repository_dir,
43
 
    transaction_only_installs_packages_from_high_trust_repos,
 
43
    trans_only_installs_pkgs_from_high_trust_repos,
44
44
    AptWorker,
45
45
    )
46
46
from aptdaemon.core import Transaction
127
127
        self.loop.run()
128
128
        self.assertEqual(trans.high_trust_packages, ["silly-base"])
129
129
        self.assertFalse(
130
 
            transaction_only_installs_packages_from_high_trust_repos(
 
130
            trans_only_installs_pkgs_from_high_trust_repos(
131
131
                trans, self.worker._high_trust_repositories))
132
132
        # whitelisted only
133
133
        trans = Transaction(None, enums.ROLE_INSTALL_PACKAGES, self.queue,
137
137
        self.worker.simulate(trans)
138
138
        self.loop.run()
139
139
        self.assertTrue(
140
 
            transaction_only_installs_packages_from_high_trust_repos(
 
140
            trans_only_installs_pkgs_from_high_trust_repos(
141
141
                trans, self.worker._high_trust_repositories))
142
142
 
143
143