Pass test.

This commit is contained in:
Itamar Turner-Trauring 2021-05-27 13:26:56 -04:00
parent 8aa3391276
commit eddd9550f0

View File

@ -20,7 +20,7 @@ from allmydata.util import fileutil
from allmydata.scripts.common import get_aliases
from allmydata.scripts import cli, runner
from ..no_network import GridTestMixin
from allmydata.util.encodingutil import quote_output
from allmydata.util.encodingutil import quote_output_u
from .common import CLITestMixin
class CreateAlias(GridTestMixin, CLITestMixin, unittest.TestCase):
@ -182,7 +182,7 @@ class CreateAlias(GridTestMixin, CLITestMixin, unittest.TestCase):
(rc, out, err) = args
self.failUnlessReallyEqual(rc, 0)
self.assertEqual(len(err), 0, err)
self.failUnlessIn(u"Alias %s created" % ensure_text(quote_output(etudes_arg)), out)
self.failUnlessIn(u"Alias %s created" % (quote_output_u(etudes_arg),), out)
aliases = get_aliases(self.get_clientdir())
self.failUnless(aliases[u"\u00E9tudes"].startswith(b"URI:DIR2:"))