'If an agent is present, but doesn\'t return a key,
L{SSHUserAuthClient.getPublicKey} continue with the normal key lookup.'

def test_getPublicKeyAgentFallback(self):

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