'L{SSHAgentClient.addIdentity} adds the private key it is called
with to the SSH agent server to which it is connected, associating
it with the comment it is called with.
This test asserts that the server receives/stores the comment
as sent by the client.'

def test_addRSAIdentityWithComment(self):

    d = self.client.addIdentity(self.rsaPrivate.privateBlob(), comment='My    special    key')
    self.pump.flush()
    def _check(ignored):
        serverKey = self.server.factory.keys[self.rsaPrivate.blob()]
        self.assertEqual(self.rsaPrivate, serverKey[0])
        self.assertEqual('My    special    key', serverKey[1])
    return d.addCallback(_check)
