~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_remote.py

  • Committer: Andrew Bennetts
  • Date: 2008-09-06 09:52:18 UTC
  • mto: This revision was merged to the branch mainline in revision 3695.
  • Revision ID: andrew.bennetts@canonical.com-20080906095218-9k920hp0t6h9bif0
Rename UntranslateableErrorFromSmartServer -> UnknownErrorFromSmartServer.

Show diffs side-by-side

added added

removed removed

Lines of Context:
718
718
        client._calls = []
719
719
 
720
720
        err = self.assertRaises(
721
 
            errors.UntranslateableErrorFromSmartServer,
 
721
            errors.UnknownErrorFromSmartServer,
722
722
            branch.set_last_revision_info, 123, 'revid')
723
723
        self.assertEqual(('UnexpectedError',), err.error_tuple)
724
724
        branch.unlock()
1102
1102
        transport_path = 'sinhala'
1103
1103
        repo, client = self.setup_fake_client_and_repository(transport_path)
1104
1104
        client.add_error_response('AnUnexpectedError')
1105
 
        e = self.assertRaises(errors.UntranslateableErrorFromSmartServer,
 
1105
        e = self.assertRaises(errors.UnknownErrorFromSmartServer,
1106
1106
            self.applyDeprecated, one_four, repo.get_revision_graph, revid)
1107
1107
        self.assertEqual(('AnUnexpectedError',), e.error_tuple)
1108
1108
 
1370
1370
        ErrorFromSmartServer is propagated unmodified.
1371
1371
        """
1372
1372
        error_tuple = ('An unknown error tuple',)
1373
 
        server_err = errors.ErrorFromSmartServer(error_tuple)
1374
 
        translated_error = self.translateErrorFromSmartServer(server_err)
1375
 
        expected_error = errors.UntranslateableErrorFromSmartServer(server_err)
 
1373
        server_error = errors.ErrorFromSmartServer(error_tuple)
 
1374
        translated_error = self.translateErrorFromSmartServer(server_error)
 
1375
        expected_error = errors.UnknownErrorFromSmartServer(server_error)
1376
1376
        self.assertEqual(expected_error, translated_error)
1377
1377
 
1378
1378
    def test_context_missing_a_key(self):