diff options
| author | Bob Halley <halley@dnspython.org> | 2023-03-19 09:31:03 -0700 |
|---|---|---|
| committer | Bob Halley <halley@dnspython.org> | 2023-03-19 09:31:03 -0700 |
| commit | 67daa993805b97ba1dc57245ecf3af2e55729df6 (patch) | |
| tree | 74a4be91e0be4b1bf0f0d8420a3991fdcd1f5e5b /tests | |
| parent | cdf9a2c37fa45eac7a6de6a4c7f74a24d1c08389 (diff) | |
| download | dnspython-67daa993805b97ba1dc57245ecf3af2e55729df6.tar.gz | |
re-run black
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_immutable.py | 2 | ||||
| -rw-r--r-- | tests/test_nsec3_hash.py | 1 | ||||
| -rw-r--r-- | tests/test_ntoaaton.py | 6 | ||||
| -rw-r--r-- | tests/test_query.py | 2 | ||||
| -rw-r--r-- | tests/test_rdtypeandclass.py | 1 | ||||
| -rw-r--r-- | tests/test_zone.py | 2 |
6 files changed, 5 insertions, 9 deletions
diff --git a/tests/test_immutable.py b/tests/test_immutable.py index fa762d8..657d1b7 100644 --- a/tests/test_immutable.py +++ b/tests/test_immutable.py @@ -39,7 +39,6 @@ class ImmutableTestCase(unittest.TestCase): class DecoratorTestCase(unittest.TestCase): - immutable_module = dns._immutable_ctx def make_classes(self): @@ -125,7 +124,6 @@ class DecoratorTestCase(unittest.TestCase): self.assertFalse(hasattr(a, "b")) def test_no_collateral_damage(self): - # A and B are immutable but not related. The magic that lets # us write to immutable things while initializing B should not let # B mess with A. diff --git a/tests/test_nsec3_hash.py b/tests/test_nsec3_hash.py index 8cb6792..f16616e 100644 --- a/tests/test_nsec3_hash.py +++ b/tests/test_nsec3_hash.py @@ -6,7 +6,6 @@ from dns import dnssec, name class NSEC3Hash(unittest.TestCase): - DATA = [ # Source: https://tools.ietf.org/html/rfc5155#appendix-A ("example", "aabbccdd", 12, "0p9mhaveqvm6t7vbl5lop2u3t2rp3tom", 1), diff --git a/tests/test_ntoaaton.py b/tests/test_ntoaaton.py index 2468486..94386ce 100644 --- a/tests/test_ntoaaton.py +++ b/tests/test_ntoaaton.py @@ -205,7 +205,7 @@ class NtoAAtoNTestCase(unittest.TestCase): ("255.255.255.255", b"\xff\xff\xff\xff"), ("0.0.0.0", b"\x00\x00\x00\x00"), ] - for (t, b) in pairs: + for t, b in pairs: b1 = aton4(t) t1 = ntoa4(b1) self.assertEqual(b1, b) @@ -289,14 +289,14 @@ class NtoAAtoNTestCase(unittest.TestCase): self.assertRaises(dns.exception.SyntaxError, bad) def test_ptontop(self): - for (af, a) in [ + for af, a in [ (socket.AF_INET, "1.2.3.4"), (socket.AF_INET6, "2001:db8:0:1:1:1:1:1"), ]: self.assertEqual(dns.inet.inet_ntop(af, dns.inet.inet_pton(af, a)), a) def test_isaddress(self): - for (t, e) in [ + for t, e in [ ("1.2.3.4", True), ("2001:db8:0:1:1:1:1:1", True), ("hello world", False), diff --git a/tests/test_query.py b/tests/test_query.py index f9b9d42..7f41f34 100644 --- a/tests/test_query.py +++ b/tests/test_query.py @@ -330,7 +330,7 @@ class AXFRNanoNameserver(Server): response = dns.message.make_response(request.message) response.question = [] response.flags |= dns.flags.AA - for (name, rdataset) in self.zone.iterate_rdatasets(): + for name, rdataset in self.zone.iterate_rdatasets(): if rdataset.rdtype == dns.rdatatype.SOA and name == dns.name.empty: continue rrset = dns.rrset.RRset( diff --git a/tests/test_rdtypeandclass.py b/tests/test_rdtypeandclass.py index eeb9279..a96dd8f 100644 --- a/tests/test_rdtypeandclass.py +++ b/tests/test_rdtypeandclass.py @@ -22,7 +22,6 @@ import dns.rdatatype class RdTypeAndClassTestCase(unittest.TestCase): - # Classes def test_class_meta1(self): diff --git a/tests/test_zone.py b/tests/test_zone.py index 6b9e2b5..7873656 100644 --- a/tests/test_zone.py +++ b/tests/test_zone.py @@ -305,7 +305,7 @@ def make_xfr(zone): soa_name = zone.origin soa = zone.find_rdataset(soa_name, "SOA") add_rdataset(msg, soa_name, soa) - for (name, rds) in zone.iterate_rdatasets(): + for name, rds in zone.iterate_rdatasets(): if rds.rdtype == dns.rdatatype.SOA: continue add_rdataset(msg, name, rds) |
