mirror of
https://github.com/jtesta/ssh-audit.git
synced 2024-11-22 10:31:41 +01:00
Fix to_ntext test.
This commit is contained in:
parent
21a93cbd66
commit
6c8173d409
@ -78,7 +78,7 @@ class TestUtils(object):
|
|||||||
assert self.utils.to_ntext('fran\xc3\xa7ais') == 'fran\xc3\xa7ais'
|
assert self.utils.to_ntext('fran\xc3\xa7ais') == 'fran\xc3\xa7ais'
|
||||||
assert self.utils.to_ntext(u'fran\xe7ais') == 'fran\xe7ais'
|
assert self.utils.to_ntext(u'fran\xe7ais') == 'fran\xe7ais'
|
||||||
# binary_type (bytes)
|
# binary_type (bytes)
|
||||||
assert self.utils.to_utext(b'fran\xc3\xa7ais') == 'fran\xe7ais'
|
assert self.utils.to_ntext(b'fran\xc3\xa7ais') == 'fran\xe7ais'
|
||||||
# other
|
# other
|
||||||
with pytest.raises(TypeError):
|
with pytest.raises(TypeError):
|
||||||
self.utils.to_ntext(123)
|
self.utils.to_ntext(123)
|
||||||
|
Loading…
Reference in New Issue
Block a user