pyldb: add more tests for control manipulation
authorMatthieu Patou <mat@matws.net>
Sat, 26 Feb 2011 18:34:43 +0000 (21:34 +0300)
committerMatthieu Patou <mat@samba.org>
Sun, 20 Mar 2011 10:27:26 +0000 (11:27 +0100)
source4/dsdb/tests/python/ldap.py

index 1a9be96102dc648cf1e54a82d2c29a02074bf498..a49dbf0023f11bd4f7960a43a2c5af5d8b297d35 100755 (executable)
@@ -2658,6 +2658,10 @@ nTSecurityDescriptor:: """ + desc_base64
                               controls=["paged_result:1:10"])
         self.assertEquals(len(res.controls), 1)
         self.assertEquals(res.controls[0].oid, "1.2.840.113556.1.4.319")
+        try:
+            s = str(res.controls[0])
+        except:
+            self.assertFalse(True)
 
     def test_operational(self):
         """Tests operational attributes"""