test_dns: DNSSEC signing inserts empty text string components

This commit is contained in:
Joshua Tauberer 2014-06-17 17:34:26 -04:00
parent 85169dc960
commit 87b0608f15

View file

@ -59,6 +59,7 @@ def test2(tests, server, description):
response = ["[no value]"]
response = ";".join(str(r) for r in response)
response = re.sub(r"(\"p=).*(\")", r"\1__KEY__\2", response) # normalize DKIM key
response = response.replace("\"\" ", "") # normalize TXT records (DNSSEC signing inserts empty text string components)
# is it right?
if response == expected_answer: