diff options
-rw-r--r-- | test/netlib/test_encoding.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/netlib/test_encoding.py b/test/netlib/test_encoding.py index 797abff2..9effb4d5 100644 --- a/test/netlib/test_encoding.py +++ b/test/netlib/test_encoding.py @@ -11,6 +11,11 @@ def test_identity(): encoding.encode(b"string", "nonexistent encoding") +def test_none(): + assert b"string" == encoding.decode(b"string", "none") + assert b"string" == encoding.encode(b"string", "none") + + @pytest.mark.parametrize("encoder", [ 'gzip', 'br', |