def test_createOrGetApplicationWithTapFile(self):
        config = twistd.ServerOptions()
        config.parseOptions(['-f', self.tapfile])
        application = CrippledApplicationRunner(config).createOrGetApplication()
        self.assertEquals(service.IService(application).name, 'Hi!')
Compute the minimum elided text for the tab title.
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/test/test_twistd.py/TapFileTest.test_createOrGetApplicationWithTapFile--crossover with--dataset/ETHPy150Open ContinuumIO/ashiba/enaml/enaml/qt/docking/q_text_label.py/QTextLabel._computeElidedText