summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2012-05-30 08:08:53 +0200
committerKai Blin <kai@samba.org>2012-06-06 13:26:14 +0200
commit754c60e4175c8cd077766cd6ea762bd46cdd41af (patch)
treee25fb2bfed2abccdb6fdd233128204681d4f0c84 /source4
parent02d9ba6ee1db9d65fad5d8bcd7478abd82281d5d (diff)
downloadsamba-754c60e4175c8cd077766cd6ea762bd46cdd41af.tar.gz
samba-754c60e4175c8cd077766cd6ea762bd46cdd41af.tar.bz2
samba-754c60e4175c8cd077766cd6ea762bd46cdd41af.zip
s4 dns: Structure tests a bit better
Diffstat (limited to 'source4')
-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 b1ea41613c..a032f23a50 100644
--- a/source4/scripting/python/samba/tests/dns.py
+++ b/source4/scripting/python/samba/tests/dns.py
@@ -112,6 +112,7 @@ class DNSTest(TestCase):
if s is not None:
s.close()
+class TestSimpleQueries(DNSTest):
def test_one_a_query(self):
"create a query packet containing one query record"
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.assertEquals(response.ancount, 1)
+
+class TestDNSUpdates(DNSTest):
def test_two_updates(self):
"create two update requests"
p = self.make_name_packet(dns.DNS_OPCODE_UPDATE)