Changeset View
Changeset View
Standalone View
Standalone View
swh/indexer/tests/test_mimetype.py
# Copyright (C) 2017-2018 The Software Heritage developers | # Copyright (C) 2017-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 unittest | import unittest | ||||
from swh.indexer.mimetype import ( | from swh.indexer.mimetype import ( | ||||
MimetypeIndexer, MimetypeRangeIndexer, compute_mimetype_encoding | MimetypeIndexer, MimetypeRangeIndexer, compute_mimetype_encoding | ||||
) | ) | ||||
from swh.indexer.tests.test_utils import ( | from swh.indexer.tests.utils import ( | ||||
CommonContentIndexerTest, CommonContentIndexerRangeTest, | CommonContentIndexerTest, CommonContentIndexerRangeTest, | ||||
CommonIndexerWithErrorsTest, CommonIndexerNoTool, | CommonIndexerWithErrorsTest, CommonIndexerNoTool, | ||||
BASE_TEST_CONFIG, fill_storage, fill_obj_storage | BASE_TEST_CONFIG, fill_storage, fill_obj_storage | ||||
) | ) | ||||
class BasicTest(unittest.TestCase): | class BasicTest(unittest.TestCase): | ||||
def test_compute_mimetype_encoding(self): | def test_compute_mimetype_encoding(self): | ||||
▲ Show 20 Lines • Show All 153 Lines • Show Last 20 Lines |