Revision 33993ab8 test/ganeti.ssh_unittest.py
b/test/ganeti.ssh_unittest.py | ||
---|---|---|
47 | 47 |
"%s ssh-rsa %s\n" % (cfg.GetClusterName(), |
48 | 48 |
mocks.FAKE_CLUSTER_KEY)) |
49 | 49 |
|
50 |
def testFormatParamikoFingerprintCorrect(self): |
|
51 |
self.assertEqual(ssh.FormatParamikoFingerprint("C0Ffee"), "c0:ff:ee") |
|
52 |
|
|
53 |
def testFormatParamikoFingerprintNotDividableByTwo(self): |
|
54 |
self.assertRaises(AssertionError, ssh.FormatParamikoFingerprint, "C0Ffe") |
|
55 |
|
|
50 | 56 |
|
51 | 57 |
if __name__ == '__main__': |
52 | 58 |
testutils.GanetiTestProgram() |
Also available in: Unified diff