Browse Source

fix(e2e2): improve binary TXT tests

Peter Thomassen 4 years ago
parent
commit
db32725bf8
1 changed files with 3 additions and 2 deletions
  1. 3 2
      test/e2e2/spec/test_api_rr_validation.py

+ 3 - 2
test/e2e2/spec/test_api_rr_validation.py

@@ -64,7 +64,8 @@ VALID_RECORDS_CANONICAL = {
         '"foo" "bar"',
         '"foo" "" "bar"',
         '"" "" "foo" "" "bar"',
-        '"new\\010line"',
+        r'"new\010line"',
+        r'"\000" "NUL byte yo"',
         f'"{"a" * 255}" "{"a" * 243}"',  # 500 byte total wire length
     ],
     'URI': ['10 1 "ftp://ftp1.example.com/public"'],
@@ -154,7 +155,7 @@ INVALID_RECORDS = {
         'v=spf1 include:example.com ~all',
         '"foo\nbar"',
         '"' + 124 * '🧥' + '==="',  # 501 byte total length
-        '"\x00" "NUL byte yo"',
+        '"\x00" "Django rejects literal NUL byte"',
     ],
     'URI': ['"1" "2" "3"'],
 }