Skip to content
Myr

Added echo tests

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent 970364d · Browse files · 1 file+11 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+11 added−0 removed

  • tests:+11 added−0 removed

1 file+11 added−0 removed

added:tests/test_utils.py+11 added
1import 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'