from freight.api.serializer import serialize
from freight.testutils import TestCase


class UserSerializerTest(TestCase):
    def test_simple(self):
        user = self.create_user()

        result = serialize(user)
        assert result["id"] == str(user.id)
        assert result["name"] == user.name

[((9, 17, 9, 32), 'freight.api.serializer.serialize', 'serialize', ({(9, 27, 9, 31): 'user'}, {}), '(user)', False, 'from freight.api.serializer import serialize\n')]