'Ensure that the createOrGetApplication call that \'twistd -f foo.tap\'
makes will load the Application out of foo.tap.'

def test_createOrGetApplicationWithTapFile(self):

    config = twistd.ServerOptions()
    config.parseOptions(['-f', self.tapfile])
    application = CrippledApplicationRunner(config).createOrGetApplication()
    self.assertEqual(service.IService(application).name, 'Hi!')
