Revision 78062de9 test/ganeti.ssh_unittest.py
b/test/ganeti.ssh_unittest.py | ||
---|---|---|
49 | 49 |
"%s ssh-rsa %s\n" % (cfg.GetClusterName(), |
50 | 50 |
mocks.FAKE_CLUSTER_KEY)) |
51 | 51 |
|
52 |
def testFormatParamikoFingerprintCorrect(self): |
|
53 |
self.assertEqual(ssh.FormatParamikoFingerprint("C0Ffee"), "c0:ff:ee") |
|
54 |
|
|
55 |
def testFormatParamikoFingerprintNotDividableByTwo(self): |
|
56 |
self.assertRaises(AssertionError, ssh.FormatParamikoFingerprint, "C0Ffe") |
|
57 |
|
|
58 | 52 |
|
59 | 53 |
class TestGetUserFiles(unittest.TestCase): |
60 | 54 |
def setUp(self): |
Also available in: Unified diff