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