test_utils.py
This file
Path
tests/test_utils.py
11 lines · 289 bytes · Python
Last changed by
Added echo testsArmin Ronacherbefore adoption159ffc5
History of this fileTake it
Added echo testsArmin Ronacherbefore adoption159ffc5
lines 1–11why, one step back1import click234def test_echo(runner):5 with runner.isolation() as out:6 click.echo(u'\N{SNOWMAN}')7 click.echo(b'\x44\x44')8 click.echo(42, nl=False)9 click.echo(b'a', nl=False)10 bytes = out.getvalue()11 assert bytes == b'\xe2\x98\x83\nDD\n42a'