Logo Search packages:      
Sourcecode: ubuntuone-couch version File versions  Download package

def ubuntuone::tests::test_auth::QueryTestCase::test_request_no_oauth_credentials (   self )
Test a request with no oauth credentials in SSO.

Definition at line 131 of file test_auth.py.

                                               :
        """Test a request with no oauth credentials in SSO."""
        mock_get_oauth_credentials = self.mocker.replace(
            'ubuntuone.couch.auth.get_oauth_credentials')
        mock_get_oauth_credentials()
        self.mocker.throw(CredentialsNotFound('consumer_key'))
        self.mocker.replay()
        result = request('https://something.one.ubuntu.com/')
        self.assertEquals(NO_CREDENTIALS, result)


Generated by  Doxygen 1.6.0   Back to index