'When connected to an agent, L{SSHUserAuthClient} can use it to
request signatures of particular data with a particular L{Key}.'

def test_signDataWithAgent(self):

    client = SSHUserAuthClient('user', ConchOptions(), None)
    agent = SSHAgentClient()
    transport = StringTransport()
    agent.makeConnection(transport)
    client.keyAgent = agent
    cleartext = 'Sign    here'
    client.signData(self.rsaPublic, cleartext)
    self.assertEqual(transport.value(), (((('\x00\x00\x00\x8b\r\x00\x00\x00u' + self.rsaPublic.blob()) + '\x00\x00\x00 DCTB ') + cleartext) + '\x00\x00\x00\x00'))
