diff options
author | Joshua Harlow <harlowja@yahoo-inc.com> | 2014-07-16 12:57:24 -0700 |
---|---|---|
committer | Joshua Harlow <harlowja@yahoo-inc.com> | 2014-07-16 12:57:24 -0700 |
commit | 81525fd93541b41d31b6da13df61a0494cc1e7f6 (patch) | |
tree | eb182b6bc0e29b41c3953ee84092e45e51b911e7 /tests/unittests/test_datasource/test_gce.py | |
parent | e11e7c2d1e908d99179f0382da4ac0b4d49bd7aa (diff) | |
download | vyos-cloud-init-81525fd93541b41d31b6da13df61a0494cc1e7f6.tar.gz vyos-cloud-init-81525fd93541b41d31b6da13df61a0494cc1e7f6.zip |
Fix a few tests that have been failing in python 2.6
A few of the current tests have been continually failing
in python 2.6 based systems, due to lack of unit test
functions that are now added to ensure we can run the
unit tests (and not have to ignore those failures) on
python 2.6
Diffstat (limited to 'tests/unittests/test_datasource/test_gce.py')
-rw-r--r-- | tests/unittests/test_datasource/test_gce.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/unittests/test_datasource/test_gce.py b/tests/unittests/test_datasource/test_gce.py index d91bd531..1979a0de 100644 --- a/tests/unittests/test_datasource/test_gce.py +++ b/tests/unittests/test_datasource/test_gce.py @@ -15,7 +15,6 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -import unittest import httpretty import re @@ -25,6 +24,8 @@ from cloudinit import settings from cloudinit import helpers from cloudinit.sources import DataSourceGCE +from tests.unittests import helpers as test_helpers + GCE_META = { 'instance/id': '123', 'instance/zone': 'foo/bar', @@ -54,7 +55,7 @@ def _request_callback(method, uri, headers): return (404, headers, '') -class TestDataSourceGCE(unittest.TestCase): +class TestDataSourceGCE(test_helpers.TestCase): def setUp(self): self.ds = DataSourceGCE.DataSourceGCE( |