From 85e1539d0a93f964e9bae3e2af3a55a984cce33a Mon Sep 17 00:00:00 2001 From: Schamper Date: Tue, 6 Sep 2016 11:07:50 +0200 Subject: Add test --- test/netlib/test_encoding.py | 5 +++++ 1 file changed, 5 insertions(+) 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', -- cgit v1.2.3