Skip to content

Commit

Permalink
TST: cymru: unexpected unicode in asname
Browse files Browse the repository at this point in the history
  • Loading branch information
monoidic committed May 16, 2023
1 parent dba2a6b commit 49e232e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions intelmq/tests/bots/experts/cymru_whois/test_expert.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@
"source.as_name": "ACONET ACOnet Backbone, AT",
"time.observation": "2015-01-01T00:00:00+00:00",
}
UNEXPECTED_UNICODE = {"__type": "Event",
"source.asn": 266522}
UNKNOWN_IP = {"__type": "Event",
"source.ip": "255.255.255.210",
}


@test.skip_redis()
Expand Down Expand Up @@ -106,6 +111,10 @@ def test_overwrite(self):
self.run_bot(parameters={'overwrite': False})
self.assertMessageEqual(0, OVERWRITE_OUT)

def test_unexpected_unicode(self):
self.input_message = UNEXPECTED_UNICODE.copy()
self.run_bot()
self.assertMessageEqual(0, UNEXPECTED_UNICODE)

if __name__ == '__main__': # pragma: no cover
unittest.main()

0 comments on commit 49e232e

Please sign in to comment.