Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list Expr Str Expr Str Expr Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad Call AttributeLoad NameLoad attr keyword Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad Call AttributeLoad NameLoad attr keyword Str keyword ListLoad Call AttributeLoad NameLoad attr Str ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad Call AttributeLoad NameLoad attr keyword Str keyword ListLoad Call AttributeLoad NameLoad attr Str ListLoad Str Call AttributeLoad NameLoad attr Str ListLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad Call AttributeLoad NameLoad attr keyword Str keyword ListLoad Call AttributeLoad NameLoad attr Str ListLoad Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str ListLoad Str Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str ListLoad Str Call AttributeLoad NameLoad attr Str ListLoad Str Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Str keyword Dict Str Str ListLoad Str ListLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad Call AttributeLoad NameLoad attr keyword Str decorator_list decorator_list
N/A N/A 
Test cases for ldaptor.protocols.ldap.ldifdelta
 twisted.trial unittest ldaptor.protocols.ldap ldifdelta ldaptor delta entry LDIFDeltaDriver N/A N/A ldifdelta LDIFDelta N/A __init__ N/A N/A self N/A N/A N/A N/A self listOfCompleted N/A N/A gotEntry N/A N/A self obj N/A N/A N/A N/A N/A N/A self listOfCompleted append obj N/A N/A N/A 
changerecord             = "changetype:" FILL
                           (change-add / change-delete /
                            change-modify / change-moddn)

change-add               = "add"                SEP 1*attrval-spec

change-delete            = "delete"             SEP

change-moddn             = ("modrdn" / "moddn") SEP
                            "newrdn:" (    FILL rdn /
                                       ":" FILL base64-rdn) SEP
                            "deleteoldrdn:" FILL ("0" / "1")  SEP
                            0*1("newsuperior:"
                            (    FILL distinguishedName /
                             ":" FILL base64-distinguishedName) SEP)

change-modify            = "modify"             SEP *mod-spec

mod-spec                 = ("add:" / "delete:" / "replace:")
                           FILL AttributeDescription SEP
                           *attrval-spec
                           "-" SEP
 N/A 
version: 1
dn: cn=foo,dc=example,dc=com
changetype: delete

 N/A 
version: 1
dn: cn=foo,dc=example,dc=com
changetype: modrdn  #OR moddn
newrdn: rdn
deleteoldrdn: 0 #OR 1
#0..1 newsuperior: distinguishedName

 TestLDIFDeltaParsing N/A N/A unittest TestCase N/A testModification_empty N/A N/A self N/A N/A N/A proto N/A LDIFDeltaDriver N/A N/A N/A proto dataReceived version: 1
dn: cn=foo,dc=example,dc=com
changetype: modify

 N/A N/A N/A proto connectionLost N/A N/A N/A self assertEqual N/A proto listOfCompleted N/A N/A N/A delta ModifyOp dn cn=foo,dc=example,dc=com N/A testModification_oneAdd N/A N/A self N/A N/A N/A proto N/A LDIFDeltaDriver N/A N/A N/A proto dataReceived version: 1
dn: cn=foo,dc=example,dc=com
changetype: modify
add: foo
foo: bar
-

 N/A N/A N/A proto connectionLost N/A N/A N/A self assertEqual N/A proto listOfCompleted N/A N/A N/A delta ModifyOp dn cn=foo,dc=example,dc=com modifications N/A N/A N/A delta Add foo N/A bar N/A testModification_twoAdds N/A N/A self N/A N/A N/A proto N/A LDIFDeltaDriver N/A N/A N/A proto dataReceived version: 1
dn: cn=foo,dc=example,dc=com
changetype: modify
add: foo
foo: bar
-
add: thud
thud: quux
thud: baz
-

 N/A N/A N/A proto connectionLost N/A N/A N/A self assertEqual N/A proto listOfCompleted N/A N/A N/A delta ModifyOp dn cn=foo,dc=example,dc=com modifications N/A N/A N/A delta Add foo N/A bar N/A N/A delta Add thud N/A quux baz N/A testModification_complex N/A N/A self N/A N/A N/A proto N/A LDIFDeltaDriver N/A N/A N/A proto dataReceived version: 1
dn: cn=foo,dc=example,dc=com
changetype: modify
delete: foo
foo: bar
-
delete: garply
-
add: thud
thud: quux
thud: baz
-
replace: waldo
-
add: foo
foo: baz
-
replace: thud
thud: xyzzy
-
add: silly
-

 N/A N/A N/A proto connectionLost N/A N/A N/A self assertEqual N/A proto listOfCompleted N/A N/A N/A delta ModifyOp dn cn=foo,dc=example,dc=com modifications N/A N/A N/A delta Delete foo N/A bar N/A N/A delta Delete garply N/A N/A delta Add thud N/A quux baz N/A N/A delta Replace waldo N/A N/A delta Add foo N/A baz N/A N/A delta Replace thud N/A xyzzy N/A N/A delta Add silly N/A testModification_fail_noDash_1 N/A N/A self N/A N/A N/A proto N/A LDIFDeltaDriver N/A N/A N/A self assertRaises N/A ldifdelta LDIFDeltaModificationMissingEndDashError N/A proto dataReceived version: 1
dn: cn=foo,dc=example,dc=com
changetype: modify
add: foo
foo: bar

 N/A testModification_fail_noDash_2 N/A N/A self N/A N/A N/A proto N/A LDIFDeltaDriver N/A N/A N/A self assertRaises N/A ldifdelta LDIFDeltaModificationMissingEndDashError N/A proto dataReceived version: 1
dn: cn=foo,dc=example,dc=com
changetype: modify
add: foo

 N/A testModification_fail_differentKey N/A N/A self N/A N/A N/A proto N/A LDIFDeltaDriver N/A N/A N/A self assertRaises N/A ldifdelta LDIFDeltaModificationDifferentAttributeTypeError N/A proto dataReceived version: 1
dn: cn=foo,dc=example,dc=com
changetype: modify
add: foo
bar: quux
-

 N/A testModification_fail_unknownModSpec N/A N/A self N/A N/A N/A proto N/A LDIFDeltaDriver N/A N/A N/A self assertRaises N/A ldifdelta LDIFDeltaUnknownModificationError N/A proto dataReceived version: 1
dn: cn=foo,dc=example,dc=com
changetype: modify
fiddle: foo
foo: bar
-

 N/A testNoChangeType N/A N/A self N/A N/A N/A proto N/A LDIFDeltaDriver N/A N/A N/A self assertRaises N/A ldifdelta LDIFDeltaMissingChangeTypeError N/A proto dataReceived version: 1
dn: cn=foo,dc=example,dc=com
add: foo
foo: bar
-

 N/A testAdd N/A N/A self N/A N/A N/A proto N/A LDIFDeltaDriver N/A N/A N/A proto dataReceived version: 1
dn: cn=foo,dc=example,dc=com
changetype: add
foo: bar
thud: quux
thud: baz

 N/A N/A N/A proto connectionLost N/A N/A N/A self assertEqual N/A proto listOfCompleted N/A N/A N/A delta AddOp N/A N/A entry BaseLDAPEntry dn cn=foo,dc=example,dc=com attributes N/A foo thud N/A bar N/A quux baz N/A testAdd_fail_noAttrvals N/A N/A self N/A N/A N/A proto N/A LDIFDeltaDriver N/A N/A N/A self assertRaises N/A ldifdelta LDIFDeltaAddMissingAttributesError N/A proto dataReceived version: 1
dn: cn=foo,dc=example,dc=com
changetype: add

 N/A testDelete N/A N/A self N/A N/A N/A proto N/A LDIFDeltaDriver N/A N/A N/A proto dataReceived version: 1
dn: cn=foo,dc=example,dc=com
changetype: delete

 N/A N/A N/A proto connectionLost N/A N/A N/A self assertEqual N/A proto listOfCompleted N/A N/A N/A delta DeleteOp dn cn=foo,dc=example,dc=com N/A N/A