def test_or(self):
     predicate = or_(equal("this", "value-1"), equal("this", "value-2"))
     self.assertEqual(
         str(predicate),
         "OrPredicate(EqualPredicate(attribute='this', value=value-1),"
         " EqualPredicate(attribute='this', value=value-2))",
     )
 def test_or(self):
     self.fill_map()
     predicate = or_(equal("this", "value-1"), equal("this", "value-2"))
     self.assertCountEqual(self.map.key_set(predicate), ["key-1", "key-2"])
    "InPredicate":
    predicate.in_(_sql_string, REFERENCE_OBJECTS["Integer"],
                  REFERENCE_OBJECTS["Integer"]),
    "RegexPredicate":
    predicate.regex(_sql_string, _sql_string),
    "AndPredicate":
    predicate.and_(
        predicate.sql(_sql_string),
        predicate.equal(_sql_string, REFERENCE_OBJECTS["Integer"]),
        predicate.not_equal(_sql_string, REFERENCE_OBJECTS["Integer"]),
        predicate.greater(_sql_string, REFERENCE_OBJECTS["Integer"]),
        predicate.greater_or_equal(_sql_string, REFERENCE_OBJECTS["Integer"])),
    "OrPredicate":
    predicate.or_(
        predicate.sql(_sql_string),
        predicate.equal(_sql_string, REFERENCE_OBJECTS["Integer"]),
        predicate.not_equal(_sql_string, REFERENCE_OBJECTS["Integer"]),
        predicate.greater(_sql_string, REFERENCE_OBJECTS["Integer"]),
        predicate.greater_or_equal(_sql_string, REFERENCE_OBJECTS["Integer"])),
    "InstanceOfPredicate":
    predicate.instance_of(
        "com.hazelcast.nio.serialization.compatibility.CustomStreamSerializable"
    )
})

_SKIP_ON_SERIALIZE = {
    "Character",
    "Float",
    "boolean[]",
    "char[]",
    "double[]",
    "short[]",