Skip to content

Commit a239152

Browse files
author
stroeder
committed
Added test for increment: lines in LDIF changes records
1 parent 3fd7216 commit a239152

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

Tests/t_ldif.py

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
See http://www.python-ldap.org/ for details.
66
7-
$Id: t_ldif.py,v 1.22 2016/07/30 17:15:22 stroeder Exp $
7+
$Id: t_ldif.py,v 1.23 2017/07/12 18:05:27 stroeder Exp $
88
"""
99

1010
# from Python's standard lib
@@ -645,6 +645,29 @@ def test_bad_change_records(self):
645645
else:
646646
self.fail("should have raised ValueError: %r" % ldif_str)
647647

648+
def test_mod_increment(self):
649+
self.check_records(
650+
"""
651+
version: 1
652+
653+
dn: cn=x,cn=y,cn=z
654+
changetype: modify
655+
increment: gidNumber
656+
gidNumber: 1
657+
-
658+
659+
""",
660+
[
661+
(
662+
'cn=x,cn=y,cn=z',
663+
[
664+
(ldif.MOD_OP_INTEGER['increment'], 'gidNumber', [b'1']),
665+
],
666+
None,
667+
),
668+
],
669+
)
670+
648671

649672
if __name__ == '__main__':
650673
unittest.main()

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy