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

def ubuntuone::tests::test_couch::QueryTestCase::test_get_user_info_404 (   self )
Test get_user_info handles non-success statuses.

Definition at line 63 of file test_couch.py.

                                    :
        """Test get_user_info handles non-success statuses."""
        mock_request = self.mocker.replace("ubuntuone.couch.auth.request")
        mock_request(
            URL, consumer_key=None, consumer_secret=None, access_token=None,
            token_secret=None)
        self.mocker.result(({'status': '404'}, ''))
        self.mocker.replay()
        self.assertRaises(UnknownError, get_user_info, URL)


Generated by  Doxygen 1.6.0   Back to index