mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Use byte literals where appropriate
Reviewed-By: Petr Viktorin <pviktori@redhat.com>
This commit is contained in:
@@ -201,13 +201,13 @@ def test_entry_to_dict():
|
||||
DN('cn=test'),
|
||||
textattr=[u'text'],
|
||||
dnattr=[DN('cn=test')],
|
||||
binaryattr=['\xffabcd'],
|
||||
binaryattr=[b'\xffabcd'],
|
||||
attributelevelrights=rights)
|
||||
the_dict = {
|
||||
u'dn': u'cn=test',
|
||||
u'textattr': [u'text'],
|
||||
u'dnattr': [u'cn=test'],
|
||||
u'binaryattr': ['\xffabcd'],
|
||||
u'binaryattr': [b'\xffabcd'],
|
||||
u'attributelevelrights': rights}
|
||||
assert_deepequal(
|
||||
baseldap.entry_to_dict(entry, all=True, raw=True),
|
||||
|
||||
Reference in New Issue
Block a user