def __eq__(self, other):
    'this equality method is only to support the unit tests of this class'
    return (isinstance(other, SerializerBase) and (vars(self) == vars(other)))
this equality method is only to support the unit tests of this class
def __eq__(self, other):
    
    return (isinstance(other, SerializerBase) and (vars(self) == vars(other)))