'The protocol factory installs bootstrap event handlers on the protocol.'

def test_buildProtocolInstallsBootstraps(self):

    called = []
    def cb(data):
        called.append(data)
    self.factory.addBootstrap('//event/myevent', cb)
    xs = self.factory.buildProtocol(None)
    xs.dispatch(None, '//event/myevent')
    self.assertEqual(1, len(called))
