Changeset View
Changeset View
Standalone View
Standalone View
swh/core/tests/test_serializers.py
# Copyright (C) 2015-2018 The Software Heritage developers | # Copyright (C) 2015-2018 The Software Heritage developers | ||||
# See the AUTHORS file at the top-level directory of this distribution | # See the AUTHORS file at the top-level directory of this distribution | ||||
# License: GNU General Public License version 3, or any later version | # License: GNU General Public License version 3, or any later version | ||||
# See top-level LICENSE file for more information | # See top-level LICENSE file for more information | ||||
import datetime | import datetime | ||||
import json | import json | ||||
import unittest | import unittest | ||||
from uuid import UUID | from uuid import UUID | ||||
import arrow | import arrow | ||||
from swh.core.serializers import ( | from swh.core.api.serializers import ( | ||||
SWHJSONDecoder, | SWHJSONDecoder, | ||||
SWHJSONEncoder, | SWHJSONEncoder, | ||||
msgpack_dumps, | msgpack_dumps, | ||||
msgpack_loads | msgpack_loads | ||||
) | ) | ||||
class Serializers(unittest.TestCase): | class Serializers(unittest.TestCase): | ||||
▲ Show 20 Lines • Show All 60 Lines • Show Last 20 Lines |