mirror of
https://github.com/samba-team/samba.git
synced 2025-08-04 08:22:08 +03:00
s4 dns: Structure tests a bit better
This commit is contained in:
@ -112,6 +112,7 @@ class DNSTest(TestCase):
|
|||||||
if s is not None:
|
if s is not None:
|
||||||
s.close()
|
s.close()
|
||||||
|
|
||||||
|
class TestSimpleQueries(DNSTest):
|
||||||
def test_one_a_query(self):
|
def test_one_a_query(self):
|
||||||
"create a query packet containing one query record"
|
"create a query packet containing one query record"
|
||||||
p = self.make_name_packet(dns.DNS_OPCODE_QUERY)
|
p = self.make_name_packet(dns.DNS_OPCODE_QUERY)
|
||||||
@ -237,6 +238,8 @@ class DNSTest(TestCase):
|
|||||||
self.assert_dns_opcode_equals(response, dns.DNS_OPCODE_QUERY)
|
self.assert_dns_opcode_equals(response, dns.DNS_OPCODE_QUERY)
|
||||||
self.assertEquals(response.ancount, 1)
|
self.assertEquals(response.ancount, 1)
|
||||||
|
|
||||||
|
|
||||||
|
class TestDNSUpdates(DNSTest):
|
||||||
def test_two_updates(self):
|
def test_two_updates(self):
|
||||||
"create two update requests"
|
"create two update requests"
|
||||||
p = self.make_name_packet(dns.DNS_OPCODE_UPDATE)
|
p = self.make_name_packet(dns.DNS_OPCODE_UPDATE)
|
||||||
|
Reference in New Issue
Block a user