From d9d196798945bef7a955acb8b71820800455be17 Mon Sep 17 00:00:00 2001 From: Jan Cholasta Date: Fri, 4 May 2012 10:34:00 -0400 Subject: Redo boolean value encoding. Move the code for encoding boolean values to LDAP boolean syntax from the Parameter class to the Encoder class, where the rest of LDAP encoding takes place. Remove encoding code from the Parameter class altogether, as all LDAP encoding should be done in the Encoder class. --- tests/test_ipalib/test_encoder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/test_ipalib') diff --git a/tests/test_ipalib/test_encoder.py b/tests/test_ipalib/test_encoder.py index c43cea212..430eda047 100644 --- a/tests/test_ipalib/test_encoder.py +++ b/tests/test_ipalib/test_encoder.py @@ -49,7 +49,7 @@ class test_Encoder(ClassChecker): assert_equal(o.encode('ahoj'), 'ahoj'.encode(encode_to)) assert_equal(o.encode(_test_str_d), _test_str_e) # bool, float, int, long - assert_equal(o.encode(True), str(True).encode(encode_to)) + assert_equal(o.encode(True), 'TRUE'.encode(encode_to)) assert_equal(o.encode(1.01), str(1.01).encode(encode_to)) assert_equal(o.encode(1000), str(1000).encode(encode_to)) assert_equal(o.encode(long(1)), str(long(1)).encode(encode_to)) -- cgit