'Test basic operations of component handshake.'

def testHandshake(self):

    d = self.init.initialize()
    handshake = self.output[(-1)]
    self.assertEqual('handshake', handshake.name)
    self.assertEqual('test:component', handshake.uri)
    self.assertEqual(sha1(('12345' + 'secret')).hexdigest(), unicode(handshake))
    handshake.children = []
    self.xmlstream.dataReceived(handshake.toXml())
    return d
