summaryrefslogtreecommitdiffstats
path: root/source4/scripting/python/samba/tests/gensec.py
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-09-22 15:35:36 -0700
committerJelmer Vernooij <jelmer@samba.org>2010-09-22 17:48:23 -0700
commit3fea9df85a7d489b81e21a7a63f9e115de712d4c (patch)
tree07c31f8431ccc4e563922f1b7f56794e449e52c9 /source4/scripting/python/samba/tests/gensec.py
parent63031a2a78cff19f1f17137adfbc85a4df05ae36 (diff)
downloadsamba-3fea9df85a7d489b81e21a7a63f9e115de712d4c.tar.gz
samba-3fea9df85a7d489b81e21a7a63f9e115de712d4c.tar.xz
samba-3fea9df85a7d489b81e21a7a63f9e115de712d4c.zip
s4-param: Check type when converting python object to lp_ctx, fix some
memory leaks.
Diffstat (limited to 'source4/scripting/python/samba/tests/gensec.py')
-rw-r--r--source4/scripting/python/samba/tests/gensec.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/source4/scripting/python/samba/tests/gensec.py b/source4/scripting/python/samba/tests/gensec.py
index 05b9a5946fb..3e716105912 100644
--- a/source4/scripting/python/samba/tests/gensec.py
+++ b/source4/scripting/python/samba/tests/gensec.py
@@ -38,9 +38,8 @@ class CredentialsTests(samba.tests.TestCase):
def test_start_mech_by_unknown_name(self):
self.assertRaises(RuntimeError, self.gensec.start_mech_by_name, "foo")
+ def test_start_mech_by_name(self):
+ self.gensec.start_mech_by_name("spnego")
+
def test_info_uninitialized(self):
self.assertRaises(RuntimeError, self.gensec.session_info)
-
- def test_info(self):
- self.gensec.start_mech_by_name("spnego")
- self.assertEquals(None, self.gensec.session_info())