Skip to content

Commit

Permalink
Correct attr value's type to bytes in tests
Browse files Browse the repository at this point in the history
Refs #212
  • Loading branch information
Jon Dufresne committed Jun 1, 2018
1 parent a06254e commit f228e7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/t_ldapobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down

0 comments on commit f228e7c

Please sign in to comment.