-
Notifications
You must be signed in to change notification settings - Fork 561
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
763268f
commit 5d4d434
Showing
1 changed file
with
19 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -283,15 +283,29 @@ async def test_events(events, scan, helpers, bbot_config): | |
assert scan.make_event("http://ドメイン.テスト:80", dummy=True).data == "http://xn--eckwd4c7c.xn--zckzah/" | ||
|
||
# thai | ||
assert scan.make_event("xn--12c1bik6bbd8ab6hd1b5jc6jta.com", dummy=True).data == "xn--12c1bik6bbd8ab6hd1b5jc6jta.com" | ||
assert scan.make_event("[email protected]", dummy=True).data == "[email protected]" | ||
assert scan.make_event("xn--12c1bik6bbd8ab6hd1b5jc6jta.com:80", dummy=True).data == "xn--12c1bik6bbd8ab6hd1b5jc6jta.com:80" | ||
assert scan.make_event("http://xn--12c1bik6bbd8ab6hd1b5jc6jta.com:80", dummy=True).data == "http://xn--12c1bik6bbd8ab6hd1b5jc6jta.com/" | ||
assert ( | ||
scan.make_event("xn--12c1bik6bbd8ab6hd1b5jc6jta.com", dummy=True).data == "xn--12c1bik6bbd8ab6hd1b5jc6jta.com" | ||
) | ||
assert ( | ||
scan.make_event("[email protected]", dummy=True).data | ||
== "[email protected]" | ||
) | ||
assert ( | ||
scan.make_event("xn--12c1bik6bbd8ab6hd1b5jc6jta.com:80", dummy=True).data | ||
== "xn--12c1bik6bbd8ab6hd1b5jc6jta.com:80" | ||
) | ||
assert ( | ||
scan.make_event("http://xn--12c1bik6bbd8ab6hd1b5jc6jta.com:80", dummy=True).data | ||
== "http://xn--12c1bik6bbd8ab6hd1b5jc6jta.com/" | ||
) | ||
|
||
assert scan.make_event("เราเที่ยวด้วยกัน.com", dummy=True).data == "xn--12c1bik6bbd8ab6hd1b5jc6jta.com" | ||
assert scan.make_event("bob@เราเที่ยวด้วยกัน.com", dummy=True).data == "[email protected]" | ||
assert scan.make_event("เราเที่ยวด้วยกัน.com:80", dummy=True).data == "xn--12c1bik6bbd8ab6hd1b5jc6jta.com:80" | ||
assert scan.make_event("http://เราเที่ยวด้วยกัน.com:80", dummy=True).data == "http://xn--12c1bik6bbd8ab6hd1b5jc6jta.com/" | ||
assert ( | ||
scan.make_event("http://เราเที่ยวด้วยกัน.com:80", dummy=True).data | ||
== "http://xn--12c1bik6bbd8ab6hd1b5jc6jta.com/" | ||
) | ||
|
||
# test event serialization | ||
from bbot.core.event import event_from_json | ||
|