def test_is_unique_together(self):
        data = {'name': 'other', 'code': 2}
        serializer = UniqueTogetherValidatorSerializer(data=data)
        assert serializer.is_valid(), serializer.errors
        assert serializer.validated_data == {
            'name': 'other',
            'code': 2
        }
Tests inc() and dec() methods.
dataset/ETHPy150Open umutbozkurt/django-rest-framework-mongoengine/tests/test_validators.py/TestUniqueTogetherValidation.test_is_unique_together--crossover with--dataset/ETHPy150Open StyleShare/flask-volatile/volatiletests/unit.py/inc_dec