'We expect a handshake element with a hash.'

def test_onElement(self):

    handshakes = []
    xs = self.xmlstream
    xs.authenticator.onHandshake = handshakes.append
    handshake = domish.Element(('jabber:component:accept', 'handshake'))
    handshake.addContent(u'1234')
    xs.authenticator.onElement(handshake)
    self.assertEqual('1234', handshakes[(-1)])
