From: Joseph Sutton Date: Tue, 29 Aug 2023 05:37:31 +0000 (+1200) Subject: pytest/dns_aging: Assert that the name of the node to search for is a string X-Git-Tag: tevent-0.16.0~770 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de04333b4d5da7a4b22778c83428e80c1a6ca97d;p=thirdparty%2Fsamba.git pytest/dns_aging: Assert that the name of the node to search for is a string Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/python/samba/tests/dns_aging.py b/python/samba/tests/dns_aging.py index 97c87d2b2f4..35d0e5c5380 100644 --- a/python/samba/tests/dns_aging.py +++ b/python/samba/tests/dns_aging.py @@ -384,6 +384,7 @@ class TestDNSAging(DNSTest): self.rpc_replace(name, old, None) def get_one_node(self, name): + self.assertIsInstance(name, str) expr = f"(&(objectClass=dnsNode)(name={name}))" nodes = self.samdb.search(base=self.zone_dn, scope=ldb.SCOPE_SUBTREE,