[Zope-CVS] SVN: ldapadapter/trunk/tests/test_ldapadapter.py Updated
test to populate the fake ldap.
Florent Guillaume
fg at nuxeo.com
Sat Oct 9 09:47:53 EDT 2004
Log message for revision 27829:
Updated test to populate the fake ldap.
Changed:
U ldapadapter/trunk/tests/test_ldapadapter.py
-=-
Modified: ldapadapter/trunk/tests/test_ldapadapter.py
===================================================================
--- ldapadapter/trunk/tests/test_ldapadapter.py 2004-10-09 13:47:25 UTC (rev 27828)
+++ ldapadapter/trunk/tests/test_ldapadapter.py 2004-10-09 13:47:53 UTC (rev 27829)
@@ -23,6 +23,10 @@
from zope.app.event.tests.placelesssetup import getEvents
+def populateFake():
+ import fakeldap
+ fakeldap.addTreeItems('o=test,dc=org')
+
def setUp(test):
import fakeldap
if sys.modules.has_key('_ldap'):
@@ -37,6 +41,7 @@
test.old_ldap = None
sys.modules['ldap'] = fakeldap
import ldap
+ populateFake()
def tearDown(test):
del sys.modules['ldap']
More information about the Zope-CVS
mailing list