/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_remote.py

  • Committer: Robert Collins
  • Date: 2009-08-26 01:18:13 UTC
  • mto: This revision was merged to the branch mainline in revision 4656.
  • Revision ID: robertc@robertcollins.net-20090826011813-46x8kcuzwz97opoi
Deserialise IncompatibleRepositories errors in the client, generating
nicer feedback when the smart server encounters such a situation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2668
2668
        expected_error = errors.ReadError(path)
2669
2669
        self.assertEqual(expected_error, translated_error)
2670
2670
 
 
2671
    def test_IncompatibleRepositories(self):
 
2672
        translated_error = self.translateTuple(('IncompatibleRepositories',
 
2673
            "repo1", "repo2", "details here"))
 
2674
        expected_error = errors.IncompatibleRepositories("repo1", "repo2",
 
2675
            "details here")
 
2676
        self.assertEqual(expected_error, translated_error)
 
2677
 
2671
2678
    def test_PermissionDenied_no_args(self):
2672
2679
        path = 'a path'
2673
2680
        translated_error = self.translateTuple(('PermissionDenied',), path=path)