/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: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2019-06-04 00:08:59 UTC
  • mfrom: (7122.6.12 win-symlink-warning)
  • Revision ID: breezy.the.bot@gmail.com-20190604000859-2xwms4tkctrj83dm
Allow symbolic links to exist when checking out trees on Windows.

Merged from https://code.launchpad.net/~jelmer/brz/win-symlink-warning/+merge/363900

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
 
 
405
391
    def test_invalid_url_join(self):
406
392
        """Test the formatting of InvalidURLJoin."""
407
393
        e = urlutils.InvalidURLJoin('Reason', 'base path', ('args',))