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

« back to all changes in this revision

Viewing changes to ubuntu_sso/tests/test_main.py

  • Committer: Alejandro J. Cura
  • Date: 2010-11-16 02:52:09 UTC
  • mto: This revision was merged to the branch mainline in revision 649.
  • Revision ID: alecu@canonical.com-20101116025209-sxeozrd2t42qhqrf
sync wrapper for async keyring access functions

Show diffs side-by-side

added added

removed removed

Lines of Context:
531
531
        mockKeyringClass(APP_NAME)
532
532
        mockKeyring = self.mocker.mock()
533
533
        self.mocker.result(mockKeyring)
534
 
        mockKeyring.set_ubuntusso_attr(token_value)
 
534
        mockKeyring.set_credentials_sync(token_value)
535
535
        self.mocker.replay()
536
536
 
537
537
        keyring_store_credentials(APP_NAME, token_value)
542
542
        mockKeyringClass(APP_NAME)
543
543
        mockKeyring = self.mocker.mock()
544
544
        self.mocker.result(mockKeyring)
545
 
        mockKeyring.get_ubuntusso_attr()
 
545
        mockKeyring.get_credentials_sync()
546
546
        self.mocker.result(TOKEN)
547
547
        self.mocker.replay()
548
548
 
555
555
        mockKeyringClass(APP_NAME)
556
556
        mockKeyring = self.mocker.mock()
557
557
        self.mocker.result(mockKeyring)
558
 
        mockKeyring.get_ubuntusso_attr()
 
558
        mockKeyring.get_credentials_sync()
559
559
        self.mocker.result(None)
560
560
        self.mocker.replay()
561
561