]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
python:tests: Permit expected_count to be zero
authorJennifer Sutton <jennifersutton@catalyst.net.nz>
Fri, 2 Aug 2024 03:55:00 +0000 (15:55 +1200)
committerJo Sutton <jsutton@samba.org>
Mon, 26 May 2025 02:41:37 +0000 (02:41 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15852

Signed-off-by: Jennifer Sutton <jennifersutton@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
python/samba/tests/domain_backup.py

index 70993bb51e717038889d472398de5f271bfb15e8..14d8b1515c39a5298695da565c97609f5561f421 100644 (file)
@@ -136,7 +136,7 @@ class DomainBackupBase(BlackboxTestCase, GkdiBaseTest):
         self.assertTrue(server_found,
                         "Could not find %s server" % expected_server)
 
-        if expected_count:
+        if expected_count is not None:
             self.assertTrue(len(res) == expected_count)
 
     def restore_dir(self):