def tearDown(self): """ cleans up the reactor after running startService on a twisted.application.service """ test_pid_file = get_pid({'settings': TEST_SETTINGS, 'http_port': HTTP_PORT}) if os.path.exists(test_pid_file): os.remove(test_pid_file) self.reactor.disconnectAll() return self.reactor.removeAll()
def tearDown(self): """ cleans up the reactor after running startService on a twisted.application.service """ test_pid_file = get_pid({ 'settings': TEST_SETTINGS, 'http_port': HTTP_PORT }) if os.path.exists(test_pid_file): os.remove(test_pid_file) self.reactor.disconnectAll() return self.reactor.removeAll()
def pid(self): "The default location of the pid file for process management" return get_pid(self.options)