Beispiel #1
0
 def test_malformed_event(self):
     parsed_dict = TestClass._load_response(
         "tests/data/events/redacted_invalid.json"
     )
     response = RedactedEvent.from_dict(parsed_dict)
     assert isinstance(response, BadEvent)
Beispiel #2
0
 def test_empty_event(self):
     parsed_dict = {}
     response = RedactedEvent.from_dict(parsed_dict)
     assert isinstance(response, UnknownBadEvent)