From: Douglas Bagnall Date: Tue, 19 Mar 2024 22:31:23 +0000 (+1300) Subject: ldb:pytests: test ldb.connect() works after .disconnect() X-Git-Tag: tdb-1.4.11~1221 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8612b3e38b3c64a6645c460ccdca52d059eeb75b;p=thirdparty%2Fsamba.git ldb:pytests: test ldb.connect() works after .disconnect() Signed-off-by: Douglas Bagnall Reviewed-by: Andrew Bartlett --- diff --git a/lib/ldb/tests/python/api.py b/lib/ldb/tests/python/api.py index 866bfb0f751..88dfa8c3b71 100755 --- a/lib/ldb/tests/python/api.py +++ b/lib/ldb/tests/python/api.py @@ -138,6 +138,15 @@ class SimpleLdb(LdbBaseTest): with self.assertRaises(ldb.LdbError): x.connect(url, flags) + def test_connect_and_disconnect(self): + url = self.url() + flags = self.flags() + x = ldb.Ldb() + x.connect(url, flags) + x.disconnect() + x.connect(url, flags) + x.disconnect() + def test_repr(self): x = ldb.Ldb() self.assertTrue(repr(x).startswith("