from tests import helpers
from bmaptools import TransRead, BmapCopy
+# This is a work-around for Centos 6
+try:
+ import unittest2 as unittest # pylint: disable=F0401
+except ImportError:
+ import unittest
+
# Test image file name
_IMAGE_NAME = "test.image.gz"
# Test bmap file names template
# Name of the subdirectory where old BmapCopy modules are stored
_OLDCODEBASE_SUBDIR = "oldcodebase"
-# This is a work-around for Centos 6
-try:
- import unittest2 as unittest # pylint: disable=F0401
-except ImportError:
- import unittest
-
class TestCompat(unittest.TestCase):
"""The test class for this unit test."""
import random
import itertools
+import tests.helpers
+from bmaptools import Filemap
# This is a work-around for Centos 6
try:
except ImportError:
import unittest
-
-import tests.helpers
-from bmaptools import Filemap
-
class Error(Exception):
"""A class for exceptions generated by this test."""
pass