forked from internetstandards/Internet.nl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internetstandards#881 fix linter errors
- Loading branch information
Showing
4 changed files
with
10 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
from checks.tasks import tlsrpt_parsing | ||
from checks.tasks import tlsrpt_parsing | ||
|
||
|
||
def test_record_parse_simple_mailto(): | ||
TXT_RECORD="v=TLSRPTv1; rua=mailto:[email protected]" | ||
TXT_RECORD = "v=TLSRPTv1; rua=mailto:[email protected]" | ||
parsed = tlsrpt_parsing.record.parseString(TXT_RECORD) | ||
assert parsed.tlsrpt_version == 'v=TLSRPTv1' | ||
assert parsed.tlsrpt_uri[0] == 'mailto:[email protected]' | ||
|
||
|
||
def test_record_parse_multiple_mailto(): | ||
TXT_RECORD="v=TLSRPTv1;rua=mailto:[email protected],mailto:[email protected]" | ||
TXT_RECORD = "v=TLSRPTv1;rua=mailto:[email protected],mailto:[email protected]" | ||
parsed = tlsrpt_parsing.record.parseString(TXT_RECORD) | ||
assert parsed.tlsrpt_version == 'v=TLSRPTv1' | ||
assert parsed.tlsrpt_uri[0] == 'mailto:[email protected]' | ||
|
@@ -27,7 +27,6 @@ def test_record_parse_with_extension(): | |
TXT_RECORD = "v=TLSRPTv1; rua=https://reporting.example.com/v1/tlsrpt; ext=extvalue" | ||
parsed = tlsrpt_parsing.record.parseString(TXT_RECORD) | ||
assert parsed.tlsrpt_version == 'v=TLSRPTv1' | ||
#assert parsed.tlsrpt_uri[0] == 'https://reporting.example.com/v1/tlsrpt' | ||
|
||
|
||
def test_parse_silent(): | ||
|