diff options
| author | Bob Halley <halley@dnspython.org> | 2020-03-11 09:31:15 -0700 |
|---|---|---|
| committer | Bob Halley <halley@dnspython.org> | 2020-03-11 09:31:15 -0700 |
| commit | 589745774f2f17e8415f6534897d17c2758e0ea2 (patch) | |
| tree | 4967a58edfbb30d9c563d198b15411d0282fb5f2 /tests/test_doh.py | |
| parent | babace649ce9be590896074c915068eab150417c (diff) | |
| download | dnspython-589745774f2f17e8415f6534897d17c2758e0ea2.tar.gz | |
delint
Diffstat (limited to 'tests/test_doh.py')
| -rw-r--r-- | tests/test_doh.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_doh.py b/tests/test_doh.py index acda5af..41d8331 100644 --- a/tests/test_doh.py +++ b/tests/test_doh.py @@ -73,7 +73,9 @@ class DNSOverHTTPSTestCase(unittest.TestCase): q = dns.message.make_query('example.com.', dns.rdatatype.A) wire = q.to_wire() query_string = '?dns={}'.format(base64.urlsafe_b64encode(wire).decode('utf-8').strip("=")) - request = requests.models.Request('GET', 'https://cloudflare-dns.com/dns-query{}'.format(query_string)) + request = requests.models.Request( + 'GET', + 'https://cloudflare-dns.com/dns-query{}'.format(query_string)) r = request.prepare() response = dns.query.send_https(self.session, r) dns_resp = dns.message.from_wire(response.content) |
