OPSI.ldaptor.test.test_inmemory module

Test cases for ldaptor.inmemory module.

class OPSI.ldaptor.test.test_inmemory.FromLDIF(methodName='runTest')

Bases: twisted.trial._asynctest.TestCase

test_missingNode()
test_single()
test_two()
class OPSI.ldaptor.test.test_inmemory.TestDiff(methodName='runTest')

Bases: twisted.trial._asynctest.TestCase

testAddChild()
testAddSubtree()
testChildChange_Add()
testDeleteChild()
testDeleteSubtree()
testNoChange()
testRootChange_Add()
class OPSI.ldaptor.test.test_inmemory.TestInMemoryDatabase(methodName='runTest')

Bases: twisted.trial._asynctest.TestCase

setUp()
testSearch_withCallback()
testSearch_withoutCallback()
test_addChild()
test_addChild_Exists()
test_children_empty()
test_children_oneChild()
test_children_repeat()

Test that .children() returns a copy of the data so that modifying it does not affect behaviour.

test_children_twoChildren()
test_commit()

ReadOnlyInMemoryLDAPEntry.commit() succeeds immediately.

test_delete()
test_deleteChild()
test_deleteChild_NonExisting()
test_delete_nonLeaf()
test_delete_root()
test_lookup_deep()
test_lookup_fail()
test_lookup_fail_outOfTree()
test_move_children_newSuperior()
test_move_children_sameSuperior()
test_move_noChildren_newSuperior()
test_move_noChildren_sameSuperior()
test_parent()
test_setPassword()
test_setPassword_noSalt()
test_subtree_empty()
test_subtree_many()
test_subtree_many_cb()
test_subtree_oneChild()
test_subtree_oneChild_cb()