Logo Search packages:      
Sourcecode: ubuntu-sso-client version File versions  Download package

def ubuntu_sso::tests::test_auth::AuthorisationClientTests::test_store_token (   self  ) 

The store_token method correctly stores an item in the keyring,
   and correctly sets an ACL on it.

Definition at line 131 of file test_auth.py.

00131                               :
        """The store_token method correctly stores an item in the keyring,
           and correctly sets an ACL on it."""
        self.expect_token_store().result(self.item_id)
        saka = self.mocker.replace("ubuntu_sso.key_acls.set_all_key_acls")
        saka(item_id=self.item_id)
        self.mocker.result(None)

        sleep = self.mocker.replace("time.sleep")
        sleep(4)
        self.mocker.result(None)

        self.replay()
        self.client.store_token(oauth.OAuthToken('access_key', 'access_secret'))

    def test_store_token_denied(self):


Generated by  Doxygen 1.6.0   Back to index