~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_errors.py

  • Committer: Andrew Bennetts
  • Date: 2007-08-17 08:31:52 UTC
  • mto: This revision was merged to the branch mainline in revision 3320.
  • Revision ID: andrew.bennetts@canonical.com-20070817083152-rmhqerwquini7tiz
Add translate_client_path method to SmartServerRequest.

Show diffs side-by-side

added added

removed removed

Lines of Context:
356
356
            "Container has multiple records with the same name: \"n\xc3\xa5me\"",
357
357
            str(e))
358
358
 
 
359
    def test_invalid_url_join(self):
 
360
        """Test the formatting of InvalidURLJoin."""
 
361
        e = errors.InvalidURLJoin('Reason', 'base path', ('args',))
 
362
        self.assertEqual(
 
363
            "Invalid URL join request: Reason: 'base path' + ('args',)",
 
364
            str(e))
 
365
 
359
366
 
360
367
class PassThroughError(errors.BzrError):
361
368