summaryrefslogtreecommitdiffstats
path: root/tests/test_ipalib
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2012-05-04 10:34:00 -0400
committerMartin Kosek <mkosek@redhat.com>2012-05-09 09:43:35 +0200
commitd9d196798945bef7a955acb8b71820800455be17 (patch)
treefcdbbb63b26640f9255a264b62d53248e8e11ba1 /tests/test_ipalib
parentabef5e8c027bf37d9522f4d30e8e43c408251893 (diff)
downloadfreeipa-d9d196798945bef7a955acb8b71820800455be17.tar.gz
freeipa-d9d196798945bef7a955acb8b71820800455be17.tar.xz
freeipa-d9d196798945bef7a955acb8b71820800455be17.zip
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.
Diffstat (limited to 'tests/test_ipalib')
-rw-r--r--tests/test_ipalib/test_encoder.py2
1 files changed, 1 insertions, 1 deletions
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))