~dobey/ubuntuone-client/update-2-0

« back to all changes in this revision

Viewing changes to tests/oauthdesktop/test_auth.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_auth - Tests for canonical.ubuntuone.oauthdesktop.auth module
 
1
# test_auth - Tests for ubuntuone.oauthdesktop.auth module
2
2
#
3
3
# Author: Stuart Langridge <stuart.langridge@canonical.com>
4
4
#
21
21
from contrib.mocker import ANY, IN, MockerTestCase
22
22
import testresources
23
23
 
24
 
from canonical.ubuntuone.storage.protocol import oauth
25
 
from canonical.ubuntuone.oauthdesktop.auth import (AuthorisationClient,
 
24
from ubuntuone.storageprotocol import oauth
 
25
from ubuntuone.oauthdesktop.auth import (AuthorisationClient,
26
26
                                                NoAccessToken)
27
27
 
28
28
 
126
126
           and correctly sets an ACL on it."""
127
127
        self.expect_token_store()
128
128
        saka = self.mocker.replace(
129
 
          "canonical.ubuntuone.oauthdesktop.key_acls.set_all_key_acls")
 
129
          "ubuntuone.oauthdesktop.key_acls.set_all_key_acls")
130
130
        saka(item_id=self.item_id)
131
131
        self.mocker.result(None)
132
132