File tree Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Original file line number Diff line number Diff line change 4
4
5
5
See http://www.python-ldap.org/ for details.
6
6
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 $
8
8
"""
9
9
10
10
# from Python's standard lib
@@ -645,6 +645,29 @@ def test_bad_change_records(self):
645
645
else :
646
646
self .fail ("should have raised ValueError: %r" % ldif_str )
647
647
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
+
648
671
649
672
if __name__ == '__main__' :
650
673
unittest .main ()
You can’t perform that action at this time.
0 commit comments