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)
def test_empty_event(self): parsed_dict = {} response = RedactedEvent.from_dict(parsed_dict) assert isinstance(response, UnknownBadEvent)