~verterok/ubuntuone-client/volumemanager_udfs-2

« back to all changes in this revision

Viewing changes to tests/oauthdesktop/test_auth.py

  • Committer: guillermo.gonzalez at canonical
  • Date: 2010-01-11 21:29:04 UTC
  • mfrom: (294.2.16 trunk)
  • Revision ID: guillermo.gonzalez@canonical.com-20100111212904-ynf6ero1crmogujf
merge with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
import testresources
23
23
 
24
24
from oauth import oauth
 
25
from twisted.trial.unittest import TestCase as TwistedTestCase
25
26
from ubuntuone.oauthdesktop.auth import (AuthorisationClient,
26
27
                                                NoAccessToken)
27
28
 
28
29
 
29
 
class AuthorisationClientTests(MockerTestCase):
 
30
# Adding TwistedTestCase as parent to be able to skip
 
31
# test_ensure_access_token_no_token
 
32
class AuthorisationClientTests(MockerTestCase, TwistedTestCase):
30
33
    """Test the GNOME keyring integration portions of the auth code."""
31
34
 
32
35
    def setUp(self):
203
206
        self.client.acquire_access_token_if_online = \
204
207
            self.client.acquire_access_token
205
208
        self.client.ensure_access_token()
 
209
    test_ensure_access_token_no_token.skip = \
 
210
        "Fails with exceptions.AssertionError: [Mocker] Unmet expectations, "\
 
211
        "see bug #488933"
206
212
 
207
213
 
208
214
class AcquireAccessTokenTests(testresources.ResourcedTestCase):