def testStartTwoOpenOfficeWithTheSameAddress(self): """Check if starting two openoffice using the same address, the second openoffice will terminate the first""" second_openoffice = OpenOffice() second_openoffice.loadSettings("localhost", 4090, self.working_path, self.office_binary_path, self.uno_path, 'en', self.environment_dict) second_openoffice.start() self.assertEquals(self.openoffice.status(), False) self.assertTrue(second_openoffice.status()) second_openoffice.stop() self.openoffice.start() second_openoffice = OpenOffice() second_openoffice.loadSettings("localhost", 4091, self.working_path, self.office_binary_path, self.uno_path, 'en', self.environment_dict) second_openoffice.start() self.assertTrue(self.openoffice.status()) self.assertTrue(second_openoffice.status()) second_openoffice.stop() self.assertFalse(second_openoffice.status())
def afterSetUp(self): """Instantiate one OpenOffice""" self.openoffice = OpenOffice() self.openoffice.loadSettings("localhost", 4090, self.working_path, self.office_binary_path, self.uno_path, 'en', self.environment_dict) self.openoffice.start()