  import datetime
  
  import pytest
  from django.db import DataError, models
  from django.test import TestCase
 
</s>
from unittest.mock import MagicMock
  import datetime
from unittest.mock import MagicMock
  
  import pytest
  from django.db import DataError, models
  from django.test import TestCase
add keep keep keep keep
 Implement `__eq__` for validators (#8925)

* Implement equality operator and add test coverage

* Add documentation on implementation
tests/test_validators.py