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

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

Sets up a mock keyring.

Definition at line 34 of file test_auth.py.

00034                    :
        """Sets up a mock keyring."""
        MockerTestCase.setUp(self)
        self.keyring = self.mocker.mock()
        self.client = None
        self.item = self.mocker.mock(gnomekeyring.Found)

        self.item_id = 999

        ex = self.expect(self.item.item_id)
        ex.result(self.item_id)
        ex.count(0, None)

        ex = self.expect(self.item.secret)
        ex.result('oauth_token=access_key&oauth_token_secret=access_secret')
        ex.count(0, None)

    def expect_token_query(self):


Generated by  Doxygen 1.6.0   Back to index