~mvo/ubuntu-sso-client/strawman-lp711413

« back to all changes in this revision

Viewing changes to ubuntu_sso/tests/test_key_acls.py

  • Committer: natalia.bidart at canonical
  • Date: 2010-06-10 14:34:40 UTC
  • mto: This revision was merged to the branch mainline in revision 537.
  • Revision ID: natalia.bidart@canonical.com-20100610143440-nzqm5ad5g0xd2k29
Making rename of ubuntu.sso to ubuntu_sso to avoid package name clashing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# test_key_acls - tests for ubuntu.sso.key_acls
 
1
# test_key_acls - tests for ubuntu_sso.key_acls
2
2
#
3
3
# Author: Stuart Langridge <stuart.langridge@canonical.com>
4
4
#
20
20
import os, StringIO
21
21
import xdg.BaseDirectory
22
22
from mocker import MockerTestCase, IN, ANY
23
 
from ubuntu.sso.key_acls import (
 
23
from ubuntu_sso.key_acls import (
24
24
  get_privileged_config_folder, get_acl_preregistrations, set_all_key_acls,
25
25
  set_single_acl)
26
26
 
79
79
    def test_set_single_acl(self):
80
80
        """Does set_single_acl work?"""
81
81
 
82
 
        giifr = self.mocker.replace("ubuntu.sso.key_acls.get_item_ids_for_realm")
 
82
        giifr = self.mocker.replace("ubuntu_sso.key_acls.get_item_ids_for_realm")
83
83
        igas = self.mocker.replace("gnomekeyring.item_get_acl_sync")
84
84
        isas = self.mocker.replace("gnomekeyring.item_set_acl_sync")
85
85
        acon = self.mocker.replace("gnomekeyring.AccessControl")
144
144
        mock_open(os.path.join(ETC_FILES_FOLDER, "b"))
145
145
        self.mocker.result(sio2)
146
146
 
147
 
        ssa = self.mocker.replace("ubuntu.sso.key_acls.set_single_acl")
 
147
        ssa = self.mocker.replace("ubuntu_sso.key_acls.set_single_acl")
148
148
        # list may come up in any order
149
149
        ssa(IN([
150
150
              [