selftest: Confirm new and old SDDL strings differ after a samba-tool dsacl set
[sfrench/samba-autobuild/.git] / python / samba / tests / samba_tool / dsacl.py
index 4b5f4c827fc9cd1ecb0bc84d91fee8c117b981f7..4a2ee56009c6810ff52c5de6b8743bc3179dccad 100644 (file)
@@ -46,6 +46,7 @@ class DSaclSetSddlTestCase(SambaToolCmdTest):
         self.assertEquals(err, "", "Shouldn't be any error messages")
         #extract only the two sddl strings from samba-tool output
         acl_list=re.findall('.*descriptor for.*:\n(.*?)\n',out)
+        self.assertNotEqual(acl_list[0], acl_list[1], "new and old SDDL string differ")
         self.assertMatch(acl_list[1], self.sddl, "new SDDL string should be contained within second sddl output")
 
     def test_sddl_set_get(self):