summaryrefslogtreecommitdiffstats
path: root/tests/unit/test-011-wallace_resources.py
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2014-07-07 01:59:03 -0400
committerThomas Bruederli <bruederli@kolabsys.com>2014-07-07 01:59:03 -0400
commit0703a82c800de826245e4bd6da6061a567c2422c (patch)
treedd5c82ef62de1c341a5e6bae9c0bde2b050c9eb9 /tests/unit/test-011-wallace_resources.py
parentd80f5c0fbb69f7b976275563e8b9b9521e9ca55e (diff)
downloadpykolab-0703a82c800de826245e4bd6da6061a567c2422c.tar.gz
Correctly return list of tuples from patched auth.search_entry_by_attribute() method
Diffstat (limited to 'tests/unit/test-011-wallace_resources.py')
-rw-r--r--tests/unit/test-011-wallace_resources.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/test-011-wallace_resources.py b/tests/unit/test-011-wallace_resources.py
index ccec4b1..9c42317 100644
--- a/tests/unit/test-011-wallace_resources.py
+++ b/tests/unit/test-011-wallace_resources.py
@@ -127,7 +127,7 @@ class TestWallaceResources(unittest.TestCase):
def _mock_search_entry_by_attribute(self, attr, value, **kw):
results = []
if value == "cn=Room 101,ou=Resources,dc=example,dc=org":
- results.append({ 'dn': 'cn=Rooms,ou=Resources,dc=example,dc=org', attr: value, 'owner': 'uid=doe,ou=People,dc=example,dc=org' })
+ results.append(('cn=Rooms,ou=Resources,dc=example,dc=org', { attr: value, 'owner': 'uid=doe,ou=People,dc=example,dc=org' }))
return results
def _mock_smtp_init(self, host=None, port=None, local_hostname=None, timeout=0):