More unicode support

This commit is contained in:
Manuel Ebert 2014-01-23 15:14:20 +01:00
parent d35502423a
commit 46951cbe12
4 changed files with 15 additions and 6 deletions

View file

@ -129,11 +129,15 @@ def check_output_time_inline(context, text):
@then('the output should contain "{text}"')
def check_output_inline(context, text):
out = context.stdout_capture.getvalue()
if isinstance(out, bytes):
out = out.decode('utf-8')
assert text in out
@then('the output should not contain "{text}"')
def check_output_not_inline(context, text):
out = context.stdout_capture.getvalue()
if isinstance(out, bytes):
out = out.decode('utf-8')
assert text not in out
@then('we should see the message "{text}"')