summaryrefslogtreecommitdiff
path: root/source4/scripting/python
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-01-04 20:49:08 +0100
committerStefan Metzmacher <metze@samba.org>2012-01-04 20:55:05 +0100
commit9465b9ce6f26d5db0477110a59da1a9306567d7b (patch)
tree771e356057351520af7c7d23c85e00ee0031bea6 /source4/scripting/python
parent1d4cc2a64f6c4df84ee708888e0dd587c0987972 (diff)
downloadsamba-9465b9ce6f26d5db0477110a59da1a9306567d7b.tar.gz
samba-9465b9ce6f26d5db0477110a59da1a9306567d7b.tar.bz2
samba-9465b9ce6f26d5db0477110a59da1a9306567d7b.zip
s4:pygensec/tests: check that the client and server have the same session key
metze
Diffstat (limited to 'source4/scripting/python')
-rw-r--r--source4/scripting/python/samba/tests/gensec.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/scripting/python/samba/tests/gensec.py b/source4/scripting/python/samba/tests/gensec.py
index 53e2292311..ab38d18505 100644
--- a/source4/scripting/python/samba/tests/gensec.py
+++ b/source4/scripting/python/samba/tests/gensec.py
@@ -88,4 +88,7 @@ class GensecTests(samba.tests.TestCase):
test_wrapped = self.gensec_server.wrap(test_string)
test_unwrapped = self.gensec_client.unwrap(test_wrapped)
self.assertEqual(test_string, test_unwrapped)
-
+
+ client_session_key = self.gensec_client.session_key()
+ server_session_key = self.gensec_server.session_key()
+ self.assertEqual(client_session_key, server_session_key)