~facundo/ubuntuone-client/aq-slots

« back to all changes in this revision

Viewing changes to tests/oauthdesktop/test_key_acls.py

  • Committer: Rodney Dawes
  • Date: 2009-06-26 17:01:42 UTC
  • mto: This revision was merged to the branch mainline in revision 60.
  • Revision ID: rodney.dawes@canonical.com-20090626170142-a738504rgnarizuw
        Remove the canonical namespace, and just use ubuntuone as the toplevel
        Move storage/syncdaemon and storage/u1sync up a level

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# test_key_acls - tests for canonical.ubuntuone.oauthdesktop.key_acls
 
1
# test_key_acls - tests for ubuntuone.oauthdesktop.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 contrib.mocker import MockerTestCase, IN, ANY
23
 
from canonical.ubuntuone.oauthdesktop.key_acls import (
 
23
from ubuntuone.oauthdesktop.key_acls import (
24
24
  get_privileged_config_folder, get_acl_preregistrations, set_all_key_acls,
25
25
  set_single_acl)
26
26
 
80
80
        """Does set_single_acl work?"""
81
81
 
82
82
        giifr = self.mocker.replace(
83
 
          "canonical.ubuntuone.oauthdesktop.key_acls.get_item_ids_for_realm")
 
83
          "ubuntuone.oauthdesktop.key_acls.get_item_ids_for_realm")
84
84
        igas = self.mocker.replace("gnomekeyring.item_get_acl_sync")
85
85
        isas = self.mocker.replace("gnomekeyring.item_set_acl_sync")
86
86
        acon = self.mocker.replace("gnomekeyring.AccessControl")
147
147
        self.mocker.result(sio2)
148
148
        
149
149
        ssa = self.mocker.replace(
150
 
          "canonical.ubuntuone.oauthdesktop.key_acls.set_single_acl")
 
150
          "ubuntuone.oauthdesktop.key_acls.set_single_acl")
151
151
        # list may come up in any order
152
152
        ssa(IN([
153
153
              [