From f82d3da1e8e5dc1d0716201af5abb724a8e78fde Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Wed, 23 Sep 2015 13:45:38 +0200 Subject: Appease pylint Reviewed-By: David Kupka Reviewed-By: Jan Cholasta Reviewed-By: Martin Basti --- ipatests/test_ipalib/test_rpc.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ipatests/test_ipalib/test_rpc.py b/ipatests/test_ipalib/test_rpc.py index f50f08a2b..827788063 100644 --- a/ipatests/test_ipalib/test_rpc.py +++ b/ipatests/test_ipalib/test_rpc.py @@ -65,6 +65,7 @@ def test_round_trip(): # standard library are correct: assert_equal(dump_n_load(utf8_bytes), unicode_str) assert_equal(dump_n_load(unicode_str), unicode_str) + # "Binary" is not "str". pylint: disable=no-member assert_equal(dump_n_load(Binary(binary_bytes)).data, binary_bytes) assert isinstance(dump_n_load(Binary(binary_bytes)), Binary) assert type(dump_n_load(b'hello')) is bytes @@ -101,6 +102,7 @@ def test_xml_wrap(): assert f({}, API_VERSION) == dict() b = f(b'hello', API_VERSION) assert isinstance(b, Binary) + # "Binary" is not "dict" or "tuple". pylint: disable=no-member assert b.data == b'hello' u = f(u'hello', API_VERSION) assert type(u) is unicode -- cgit