From 16d9ebb396db2552de77706b644f299a3c2be79d Mon Sep 17 00:00:00 2001 From: Kai Blin Date: Thu, 24 Nov 2011 12:10:40 +0100 Subject: s4 dns: Check more of the returned values for the A query --- source4/scripting/python/samba/tests/dns.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source4') diff --git a/source4/scripting/python/samba/tests/dns.py b/source4/scripting/python/samba/tests/dns.py index 97c7c02125..ad0b55a7f8 100644 --- a/source4/scripting/python/samba/tests/dns.py +++ b/source4/scripting/python/samba/tests/dns.py @@ -94,6 +94,9 @@ class DNSTest(TestCase): response = self.dns_transaction_udp(p) self.assert_dns_rcode_equals(response, dns.DNS_RCODE_OK) self.assert_dns_opcode_equals(response, dns.DNS_OPCODE_QUERY) + self.assertEquals(response.ancount, 1) + self.assertEquals(response.answers[0].rdata, + os.getenv('DC_SERVER_IP')) def test_two_queries(self): "create a query packet containing two query records" -- cgit