From f228e7c4c164e4c0aa86fa3e23a4a21e72521b0d Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Thu, 31 May 2018 20:22:21 -0700 Subject: [PATCH] Correct attr value's type to bytes in tests Refs #212 --- Tests/t_ldapobject.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/t_ldapobject.py b/Tests/t_ldapobject.py index 7686826..4ab63f5 100644 --- a/Tests/t_ldapobject.py +++ b/Tests/t_ldapobject.py @@ -649,13 +649,13 @@ def test_dse_bytes(self): def test_compare_s_true(self): base = self.server.suffix l = self._ldap_conn - result = l.compare_s('cn=Foo1,%s' % base, 'cn', 'Foo1') + result = l.compare_s('cn=Foo1,%s' % base, 'cn', b'Foo1') self.assertIs(result, True) def test_compare_s_false(self): base = self.server.suffix l = self._ldap_conn - result = l.compare_s('cn=Foo1,%s' % base, 'cn', 'Foo2') + result = l.compare_s('cn=Foo1,%s' % base, 'cn', b'Foo2') self.assertIs(result, False)