From 5d168a9d11e905dd19e24d0596b7d1145e6b8aa1 Mon Sep 17 00:00:00 2001 From: Daniel Watkins Date: Thu, 13 Nov 2014 10:35:46 +0000 Subject: Use test_helpers.TestCase for test_sshutil tests. As requested by harlowja. --- tests/unittests/test_sshutil.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/unittests/test_sshutil.py b/tests/unittests/test_sshutil.py index cd576e8f..3b317121 100644 --- a/tests/unittests/test_sshutil.py +++ b/tests/unittests/test_sshutil.py @@ -1,7 +1,6 @@ -from unittest import TestCase - from mock import patch +from . import helpers as test_helpers from cloudinit import ssh_util @@ -38,7 +37,7 @@ TEST_OPTIONS = ("no-port-forwarding,no-agent-forwarding,no-X11-forwarding," 'user \"root\".\';echo;sleep 10"') -class TestAuthKeyLineParser(TestCase): +class TestAuthKeyLineParser(test_helpers.TestCase): def test_simple_parse(self): # test key line with common 3 fields (keytype, base64, comment) parser = ssh_util.AuthKeyLineParser() @@ -101,7 +100,7 @@ class TestAuthKeyLineParser(TestCase): self.assertFalse(key.valid()) -class TestParseSSHConfig(TestCase): +class TestParseSSHConfig(test_helpers.TestCase): def setUp(self): self.load_file_patch = patch('cloudinit.ssh_util.util.load_file') -- cgit v1.2.3