diff options
author | Scott Moser <smoser@ubuntu.com> | 2014-07-16 16:15:47 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2014-07-16 16:15:47 -0400 |
commit | 6a4976e8a9915680fbc91f90bed8fcfa79cba5cf (patch) | |
tree | bbb7740d1c897b14e28fbd4d784115f46130f38c /tests/unittests/test_datasource/test_cloudsigma.py | |
parent | e11e7c2d1e908d99179f0382da4ac0b4d49bd7aa (diff) | |
parent | 81525fd93541b41d31b6da13df61a0494cc1e7f6 (diff) | |
download | vyos-cloud-init-6a4976e8a9915680fbc91f90bed8fcfa79cba5cf.tar.gz vyos-cloud-init-6a4976e8a9915680fbc91f90bed8fcfa79cba5cf.zip |
fix 'make test' in python 2.6
Diffstat (limited to 'tests/unittests/test_datasource/test_cloudsigma.py')
-rw-r--r-- | tests/unittests/test_datasource/test_cloudsigma.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/unittests/test_datasource/test_cloudsigma.py b/tests/unittests/test_datasource/test_cloudsigma.py index f92e07b7..eadb3cb7 100644 --- a/tests/unittests/test_datasource/test_cloudsigma.py +++ b/tests/unittests/test_datasource/test_cloudsigma.py @@ -1,10 +1,11 @@ # coding: utf-8 import copy -from unittest import TestCase from cloudinit.cs_utils import Cepko from cloudinit.sources import DataSourceCloudSigma +from tests.unittests import helpers as test_helpers + SERVER_CONTEXT = { "cpu": 1000, @@ -36,7 +37,7 @@ class CepkoMock(Cepko): return self -class DataSourceCloudSigmaTest(TestCase): +class DataSourceCloudSigmaTest(test_helpers.TestCase): def setUp(self): self.datasource = DataSourceCloudSigma.DataSourceCloudSigma("", "", "") self.datasource.is_running_in_cloudsigma = lambda: True |