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

« back to all changes in this revision

Viewing changes to ubuntu/sso/tests/test_auth.py

  • Committer: natalia.bidart at canonical
  • Date: 2010-06-09 18:23:27 UTC
  • mfrom: (533.1.4 rename)
  • Revision ID: natalia.bidart@canonical.com-20100609182327-kmd0rjjb1f0eojhu
Renaming modules and Dbus service to make them more generic.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# test_auth - Tests for ubuntuone.oauthdesktop.auth module
 
1
# test_auth - Tests for ubuntu.sso.auth module
2
2
#
3
3
# Author: Stuart Langridge <stuart.langridge@canonical.com>
4
4
#
23
23
 
24
24
from oauth import oauth
25
25
from twisted.trial.unittest import TestCase as TwistedTestCase
26
 
from ubuntuone.oauthdesktop.auth import (AuthorisationClient,
27
 
                                                NoAccessToken)
 
26
from ubuntu.sso.auth import AuthorisationClient, NoAccessToken
28
27
 
29
28
 
30
29
# Adding TwistedTestCase as parent to be able to skip
133
132
        """The store_token method correctly stores an item in the keyring,
134
133
           and correctly sets an ACL on it."""
135
134
        self.expect_token_store().result(self.item_id)
136
 
        saka = self.mocker.replace(
137
 
          "ubuntuone.oauthdesktop.key_acls.set_all_key_acls")
 
135
        saka = self.mocker.replace("ubuntu.sso.key_acls.set_all_key_acls")
138
136
        saka(item_id=self.item_id)
139
137
        self.mocker.result(None)
140
138