'L{SSHUserAuthClient.getPublicKey()} is able to get a public key from
the first file described by its options\' C{identitys} list, and return
the corresponding public L{Key} object.'

def test_getPublicKeyFromFile(self):

    options = ConchOptions()
    options.identitys = [self.rsaFile.path]
    client = SSHUserAuthClient('user', options, None)
    key = client.getPublicKey()
    self.assertTrue(key.isPublic())
    self.assertEqual(key, self.rsaPublic)
