def test_taggit_serializer_create(self):
        request_data = {
            "tags": ["1", "2", "3"]
        }

        serializer = TestModelSerializer(data=request_data)
        serializer.is_valid()
        test_model = serializer.save()

        assert len(test_model.tags.all()) == len(request_data.get('tags'))
Decorator for adding event handlers.
dataset/ETHPy150Open glemmaPaul/django-taggit-serializer/tests/test_serializers.py/TestTaggit_serializer.test_taggit_serializer_create--crossover with--dataset/ETHPy150Open spotify/luigi/luigi/task.py/Task.event_handler