Commit 782e63a6 authored by Gabriel Monnerat's avatar Gabriel Monnerat

don't need pass the display id, because Xvfb isn't used anymore

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@43505 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8ec13c2a
......@@ -36,20 +36,19 @@ class TestApplication(unittest.TestCase):
def setUp(self):
"""Instantiate one application object and load settings on object"""
self.application = Application()
self.application.loadSettings('localhost', 9999, '/tmp/', '99')
self.application.loadSettings('localhost', 9999, '/tmp/')
def testLoadSettings(self):
"""Test if settings are defined correctly"""
self.assertEquals(self.application.hostname, 'localhost')
self.assertEquals(self.application.port, 9999)
self.assertEquals(self.application.path_run_dir, '/tmp/')
self.assertEquals(self.application.display_id, '99')
def testStartTimeout(self):
"""Test if the attribute timeout is defined correctly"""
self.assertEquals(self.application.timeout, 20)
application = Application()
application.loadSettings('localhost', 9999, '/', '99', start_timeout=25)
application.loadSettings('localhost', 9999, '/', start_timeout=25)
self.assertEquals(application.timeout, 25)
def testgetAddress(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment