Author: bugman Date: Mon Jul 9 10:52:01 2012 New Revision: 17211 URL: http://svn.gna.org/viewcvs/relax?rev=17211&view=rev Log: Bug fix for the Dead_uf_pages.test_mol_create() GUI test for MS Windows. The _execute_uf() method is now used instead of simulating _ok() calls. Modified: trunk/test_suite/gui_tests/dead_uf_pages.py Modified: trunk/test_suite/gui_tests/dead_uf_pages.py URL: http://svn.gna.org/viewcvs/relax/trunk/test_suite/gui_tests/dead_uf_pages.py?rev=17211&r1=17210&r2=17211&view=diff ============================================================================== --- trunk/test_suite/gui_tests/dead_uf_pages.py (original) +++ trunk/test_suite/gui_tests/dead_uf_pages.py Mon Jul 9 10:52:01 2012 @@ -41,28 +41,18 @@ def test_mol_create(self): """Test a failure detected via the molecule.create user function.""" - # The user function objects. - mol_create = uf_store['molecule.create'] - pipe_create = uf_store['pipe.create'] - # First try to create a molecule (this will fail due to no data pipes being present). try: - # Call the object, then simulate the 'ok' click. - mol_create(mol_name='x', mol_type='protein') - mol_create.wizard._ok() - interpreter.flush() + # Call the object. + self._execute_uf(uf_name='molecule.create', mol_name='x', mol_type='protein') except RelaxNoPipeError, instance: sys.stderr.write(instance.__str__()) # Create a data pipe. - pipe_create(pipe_name='test', pipe_type='mf') - pipe_create.wizard._ok() - interpreter.flush() + self._execute_uf(uf_name='pipe.create', pipe_name='test', pipe_type='mf') # Try to create the molecule a second time. - mol_create(mol_name='x', mol_type='protein') - mol_create.wizard._ok() - interpreter.flush() + self._execute_uf(uf_name='molecule.create', mol_name='x', mol_type='protein') # Checks. self.assertEqual(len(cdp.mol), 1)