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

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

Expects the token to be stored in the keyring.

Definition at line 60 of file test_auth.py.

00060                                 :
        """Expects the token to be stored in the keyring."""
        return self.expect(self.keyring.item_create_sync(
                None, gnomekeyring.ITEM_GENERIC_SECRET,
                'UbuntuOne token for realm',
                {'ubuntuone-realm': 'realm',
                 'oauth-consumer-key': 'consumer_key'},
                # Either order for the token and secret is valid
                IN(['oauth_token=access_key&oauth_token_secret=access_secret',
                    'oauth_token_secret=access_secret&oauth_token=access_key']),
                True))

    def expect_token_store_denied(self):


Generated by  Doxygen 1.6.0   Back to index