summaryrefslogtreecommitdiff
path: root/tests/unittests/test_sshutil.py
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2013-03-07 14:54:25 -0500
committerScott Moser <smoser@ubuntu.com>2013-03-07 14:54:25 -0500
commitdca9b6c94e10f9f42ad0f129ae6fd38ebb44f4b5 (patch)
tree0b4ac8f1e658e07bda378c75b5fb33940a14265b /tests/unittests/test_sshutil.py
parent90ed3dee9672ba2756dd4a303f94e3de47e70404 (diff)
downloadvyos-cloud-init-dca9b6c94e10f9f42ad0f129ae6fd38ebb44f4b5.tar.gz
vyos-cloud-init-dca9b6c94e10f9f42ad0f129ae6fd38ebb44f4b5.zip
pep8 and pylint fixes
Diffstat (limited to 'tests/unittests/test_sshutil.py')
-rw-r--r--tests/unittests/test_sshutil.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/unittests/test_sshutil.py b/tests/unittests/test_sshutil.py
index 2415d06f..d8662cac 100644
--- a/tests/unittests/test_sshutil.py
+++ b/tests/unittests/test_sshutil.py
@@ -1,5 +1,5 @@
-from unittest import TestCase
from cloudinit import ssh_util
+from unittest import TestCase
VALID_CONTENT = {
@@ -34,6 +34,7 @@ TEST_OPTIONS = ("no-port-forwarding,no-agent-forwarding,no-X11-forwarding,"
'command="echo \'Please login as the user \"ubuntu\" rather than the'
'user \"root\".\';echo;sleep 10"')
+
class TestAuthKeyLineParser(TestCase):
def test_simple_parse(self):
# test key line with common 3 fields (keytype, base64, comment)
@@ -61,7 +62,7 @@ class TestAuthKeyLineParser(TestCase):
self.assertFalse(key.options)
self.assertFalse(key.comment)
self.assertEqual(key.keytype, ktype)
-
+
def test_parse_with_keyoptions(self):
# test key line with options in it
parser = ssh_util.AuthKeyLineParser()