Skip to content

Commit

Permalink
blacked
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTechromancer committed Sep 18, 2023
1 parent 763268f commit 5d4d434
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions bbot/test/test_step_1/test_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5d4d434

Please sign in to comment.