fix #1198 - decoding monkeypatched data to unicode

This commit is contained in:
mehdy 2015-11-29 19:42:50 +03:30
parent 81ad1689b9
commit f9b1e39b8a
1 changed files with 3 additions and 3 deletions

View File

@ -80,8 +80,8 @@ class TestPaste:
url, data = mocked_urlopen[0]
lexer = 'python3' if sys.version_info[0] == 3 else 'python'
assert url == 'https://bpaste.net'
assert 'lexer=%s' % lexer in data
assert 'code=full-paste-contents' in data
assert 'expiry=1week' in data
assert 'lexer=%s' % lexer in data.decode()
assert 'code=full-paste-contents' in data.decode()
assert 'expiry=1week' in data.decode()