mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-03 11:44:11 +00:00
using run_cli_unicode, better expect unicode result
This commit is contained in:
parent
c12b082fa7
commit
8ca98bb8ca
@ -6,7 +6,7 @@ from twisted.internet.defer import inlineCallbacks
|
|||||||
from allmydata.scripts.common import get_aliases
|
from allmydata.scripts.common import get_aliases
|
||||||
from allmydata.test.no_network import GridTestMixin
|
from allmydata.test.no_network import GridTestMixin
|
||||||
from .common import CLITestMixin
|
from .common import CLITestMixin
|
||||||
from allmydata.util.encodingutil import quote_output
|
from allmydata.util.encodingutil import quote_output_u
|
||||||
|
|
||||||
# see also test_create_alias
|
# see also test_create_alias
|
||||||
|
|
||||||
@ -24,8 +24,8 @@ class ListAlias(GridTestMixin, CLITestMixin, unittest.TestCase):
|
|||||||
)
|
)
|
||||||
|
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
b"Alias {} created\n".format(
|
u"Alias {} created\n".format(
|
||||||
quote_output(alias, encoding=encoding),
|
quote_output_u(alias, encoding=encoding),
|
||||||
),
|
),
|
||||||
stdout,
|
stdout,
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user