From 88c331d93260773eb701797db12e5eed9f30c970 Mon Sep 17 00:00:00 2001 From: vakarisz Date: Tue, 12 Jul 2022 16:13:18 +0300 Subject: [PATCH] UT: Rename BogusClass to BogusSerializableClass --- .../monkey_island/cc/services/test_representations.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monkey/tests/unit_tests/monkey_island/cc/services/test_representations.py b/monkey/tests/unit_tests/monkey_island/cc/services/test_representations.py index a022c12f4..541a64c18 100644 --- a/monkey/tests/unit_tests/monkey_island/cc/services/test_representations.py +++ b/monkey/tests/unit_tests/monkey_island/cc/services/test_representations.py @@ -75,7 +75,7 @@ def test_api_encoder_tuple(): assert json.dumps(expected_tuple) == json.dumps(bogus_tuple, cls=APIEncoder) -class BogusClass(IJSONSerializable): +class BogusSerializableClass(IJSONSerializable): def __init__(self, a): self.a = a @@ -89,6 +89,6 @@ class BogusClass(IJSONSerializable): def test_api_encoder_json_serializable(): - bogus_data = {"target": [BogusClass("macky")]} + bogus_data = {"target": [BogusSerializableClass("macky")]} expected_result = {"target": [{"wacky": "macky"}]} assert json.dumps(expected_result) == json.dumps(bogus_data, cls=APIEncoder)