Skip to content

Validators do not implement __eq__ method #8905

Closed
@michaelurban

Description

@michaelurban

Rest Framework validators do not implement the __eq__ method like many of their Django counterparts.

The expression ProhibitSurrogateCharactersValidator() == ProhibitSurrogateCharactersValidator() evaluates to False when it would be useful to have it evaluate to True, especially in tests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions