          assert serializer.validated_data == expected_output
  
  
  class TestListSerializerContainingNestedSerializer:
      """
      Tests for using a ListSerializer containing another serializer.
 
</s>
    @pytest.mark.skipif(
        sys.version_info < (3, 7),
        reason="subscriptable classes requires Python 3.7 or higher",
    )
    def test_list_serializer_is_subscriptable(self):
        assert serializers.ListSerializer is serializers.ListSerializer["foo"]

          assert serializer.validated_data == expected_output
  
    @pytest.mark.skipif(
        sys.version_info < (3, 7),
        reason="subscriptable classes requires Python 3.7 or higher",
    )
    def test_list_serializer_is_subscriptable(self):
        assert serializers.ListSerializer is serializers.ListSerializer["foo"]

  
  class TestListSerializerContainingNestedSerializer:
      """
      Tests for using a ListSerializer containing another serializer.
keep add keep keep keep keep
 Allow type checkers to make serializers generic (#7385)
tests/test_serializer_lists.py