diff options
Diffstat (limited to 'src/croniter/tests/base.py')
-rw-r--r-- | src/croniter/tests/base.py | 33 |
1 files changed, 7 insertions, 26 deletions
diff --git a/src/croniter/tests/base.py b/src/croniter/tests/base.py index 583f92a..e3ded73 100644 --- a/src/croniter/tests/base.py +++ b/src/croniter/tests/base.py @@ -1,31 +1,12 @@ -import unittest2 as unittest - -from croniter.testing import ( - CRONITER_FIXTURE as UNIT_TESTING, - CRONITER_INTEGRATION_TESTING as INTEGRATION_TESTING, - CRONITER_FUNCTIONAL_TESTING as FUNCTIONAL_TESTING, -) - +try: + import unittest2 as unittest +except ImportError: + import unittest class TestCase(unittest.TestCase): - """We use this base class for all the tests in this package. + ''' + We use this base class for all the tests in this package. If necessary, we can put common utility or setup code in here. - """ - layer = UNIT_TESTING - - def setUp(self): - super(TestCase, self).setUp() - - -class IntegrationTestCase(TestCase): - """Integration base TestCase.""" - layer = INTEGRATION_TESTING - - -class FunctionalTestCase(TestCase): - """Functionnal base TestCase.""" - layer = FUNCTIONAL_TESTING - - + ''' # vim:set ft=python: |