/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 breezy/tests/test_errors.py

  • Committer: Jelmer Vernooij
  • Date: 2019-06-03 23:48:08 UTC
  • mfrom: (7316 work)
  • mto: This revision was merged to the branch mainline in revision 7328.
  • Revision ID: jelmer@jelmer.uk-20190603234808-15yk5c7054tj8e2b
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
388
388
            "you wish to keep, and delete it when you are done.",
389
389
            str(err))
390
390
 
 
391
    def test_unable_create_symlink(self):
 
392
        err = errors.UnableCreateSymlink()
 
393
        self.assertEqual(
 
394
            "Unable to create symlink on this platform",
 
395
            str(err))
 
396
        err = errors.UnableCreateSymlink(path=u'foo')
 
397
        self.assertEqual(
 
398
            "Unable to create symlink 'foo' on this platform",
 
399
            str(err))
 
400
        err = errors.UnableCreateSymlink(path=u'\xb5')
 
401
        self.assertEqual(
 
402
            "Unable to create symlink %s on this platform" % repr(u'\xb5'),
 
403
            str(err))
 
404
 
391
405
    def test_invalid_url_join(self):
392
406
        """Test the formatting of InvalidURLJoin."""
393
407
        e = urlutils.InvalidURLJoin('Reason', 'base path', ('args',))