summaryrefslogtreecommitdiff
path: root/source4/scripting
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2011-11-24 12:10:40 +0100
committerKai Blin <kai@samba.org>2011-11-24 12:35:08 +0100
commit16d9ebb396db2552de77706b644f299a3c2be79d (patch)
treea323be016ec18016b1487c690929cb72da9e733a /source4/scripting
parent1a599da550fb54fd6fb4cc2db827e7ea435ad51d (diff)
downloadsamba-16d9ebb396db2552de77706b644f299a3c2be79d.tar.gz
samba-16d9ebb396db2552de77706b644f299a3c2be79d.tar.bz2
samba-16d9ebb396db2552de77706b644f299a3c2be79d.zip
s4 dns: Check more of the returned values for the A query
Diffstat (limited to 'source4/scripting')
-rw-r--r--source4/scripting/python/samba/tests/dns.py3
1 files changed, 3 insertions, 0 deletions
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"