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