~lifeless/+junk/paramiko

« back to all changes in this revision

Viewing changes to tests/test_hostkeys.py

  • Committer: Robey Pointer
  • Date: 2006-03-12 04:06:33 UTC
  • Revision ID: robey@lag.net-20060312040633-92b1c78bf815905d
add test to verify that 'for x in hostkeys' works

Show diffs side-by-side

added added

removed removed

Lines of Context:
82
82
        self.assertTrue(x is not None)
83
83
        fp = paramiko.util.hexify(x['ssh-rsa'].get_fingerprint())
84
84
        self.assertEquals('E6684DB30E109B67B70FF1DC5C7F1363', fp)
 
85
        i = 0
 
86
        for key in hostdict:
 
87
            i += 1
 
88
        self.assertEquals(2, i)
 
89