def test_getPrelude(self):
        self.assertEqual(
            ['foo.bar', 'baz'],
            self.result._getPreludeSegments('foo.bar.baz.qux'))
        self.assertEqual(
            ['foo', 'bar'],
            self.result._getPreludeSegments('foo.bar.baz'))
        self.assertEqual(
            ['foo'],
            self.result._getPreludeSegments('foo.bar'))
        self.assertEqual([], self.result._getPreludeSegments('foo'))
Register an L{IProtocol<twisted.internet.interfaces.IProtocol>} provider
dataset/ETHPy150Open twisted/twisted/twisted/trial/test/test_reporter.py/TreeReporterTests.test_getPrelude--crossover with--dataset/ETHPy150Open scrapy/scrapy/scrapy/xlib/tx/iweb.py/IResponse.deliverBody