def initialize(self):
        self.persistence_service = ConfigurationPersistenceService(
            reactor, FilePath(self.mktemp()))
        self.persistence_service.startService()
        self.cluster_state_service = ClusterStateService(Clock())
        self.cluster_state_service.startService()
        self.clock = Clock()
        self.addCleanup(self.cluster_state_service.stopService)
        self.addCleanup(self.persistence_service.stopService)
Decorator: Catch exception ``from_exception`` and instead raise ``to_exception(*to_args, **to_kw)``.
dataset/ETHPy150Open ClusterHQ/flocker/flocker/control/test/test_httpapi.py/APITestsMixin.initialize--crossover with--dataset/ETHPy150Open shazow/unstdlib.py/unstdlib/standard/exception_.py/convert_exception