forked from p15670423/monkey
UT: Remove unnecessary tests from test_ping_scan_event.py
These tests are unnecessary because we will not use json() to convert to JSON.
This commit is contained in:
parent
6390993875
commit
0cd8cd577d
|
@ -97,20 +97,6 @@ def test_construct__extra_fields_forbidden():
|
||||||
PingScanEvent(**extra_field_dict)
|
PingScanEvent(**extra_field_dict)
|
||||||
|
|
||||||
|
|
||||||
def test_ping_scan_event_serialization_json():
|
|
||||||
serialized_event = PING_EVENT.json()
|
|
||||||
assert "1.1.1.1" in serialized_event
|
|
||||||
assert "true" in serialized_event
|
|
||||||
assert OperatingSystem.LINUX.value in serialized_event
|
|
||||||
assert str(AGENT_ID) in serialized_event
|
|
||||||
|
|
||||||
|
|
||||||
def test_ping_scan_event_deserialization_json():
|
|
||||||
serialized_event = PING_EVENT.json()
|
|
||||||
deserialized_event = PingScanEvent.parse_raw(serialized_event)
|
|
||||||
assert deserialized_event == PING_EVENT
|
|
||||||
|
|
||||||
|
|
||||||
def test_ping_scan_event_deserialization_dict():
|
def test_ping_scan_event_deserialization_dict():
|
||||||
serialized_event = PING_EVENT.dict()
|
serialized_event = PING_EVENT.dict()
|
||||||
deserialized_event = PingScanEvent(**serialized_event)
|
deserialized_event = PingScanEvent(**serialized_event)
|
||||||
|
|
Loading…
Reference in New Issue