def serialize(format, queryset, **options):
    s = get_serializer(format)()
    s.serialize(queryset, **options)
    return s.getvalue()
Test the creation of a simple XlsxWriter file.
dataset/ETHPy150Open dcramer/django-compositepks/django/core/serializers/__init__.py/serialize--crossover with--dataset/ETHPy150Open jmcnamara/XlsxWriter/xlsxwriter/test/comparison/test_chart_combined08.py/TestCompareXLSXFiles.test_create_file