# Path: pyston/serializer.py
# def serialize(self, serialization_format, **kwargs):
#     raise NotImplementedError


import json
import xml.dom.minidom
from decimal import Decimal
from uuid import uuid4
from datetime import date, datetime, time, timedelta
from collections import OrderedDict
from germanium.tools import assert_true, assert_equal
from unittest.case import TestCase
from app.models import User
from pyston.serializer import serialize








class DirectSerializationTestCase(TestCase):

    def test_serialization(self):
        for i in range(10):
            User.objects.create(is_superuser=True, email='test{}@test.cz'.format(i))

# Path: pyston/serializer.py
# def serialize(self, serialization_format, **kwargs):
#     raise NotImplementedError


# Path: example/dj/apps/app/tests/serializer.py
import json
import xml.dom.minidom
from decimal import Decimal
from uuid import uuid4
from datetime import date, datetime, time, timedelta
from collections import OrderedDict
from germanium.tools import assert_true, assert_equal
from unittest.case import TestCase
from app.models import User
from pyston.serializer import serialize









class DirectSerializationTestCase(TestCase):

    def test_serialization(self):
        for i in range(10):
            User.objects.create(is_superuser=True, email='test{}@test.cz'.format(i))

        assert_true(isinstance(json.loads((serialize(User.objects.all()))), list))