Beispiel #1
0
    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()
Beispiel #2
0
    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()
Beispiel #3
0
 def pid(self):
     "The default location of the pid file for process management"
     return get_pid(self.options)
Beispiel #4
0
 def pid(self):
     "The default location of the pid file for process management"
     return get_pid(self.options)