Skip to content

Commit

Permalink
some more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lazka committed Jul 26, 2017
1 parent 7878b6c commit 69754fb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/test_hypo.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,14 @@ def test_anything(pathlike):
except EnvironmentError:
pass

assert isinstance(fsn2text(fsn), text_type)
fsn2text(fsn).encode("utf-8")

try:
t = fsn2text(fsn, strict=True)
except ValueError:
pass
else:
assert text2fsn(t) == fsn

data = fsn2bytes(fsn, "utf-8")
assert fsn2bytes(bytes2fsn(data, "utf-8"), "utf-8") == data
Expand Down

0 comments on commit 69754fb

Please sign in to comment.