Trees | Indices | Help |
|
---|
|
1 ############################################################################### 2 # # 3 # Copyright (C) 2006-2009,2012-2013 Edward d'Auvergne # 4 # # 5 # This file is part of the program relax (http://www.nmr-relax.com). # 6 # # 7 # This program is free software: you can redistribute it and/or modify # 8 # it under the terms of the GNU General Public License as published by # 9 # the Free Software Foundation, either version 3 of the License, or # 10 # (at your option) any later version. # 11 # # 12 # This program is distributed in the hope that it will be useful, # 13 # but WITHOUT ANY WARRANTY; without even the implied warranty of # 14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # 15 # GNU General Public License for more details. # 16 # # 17 # You should have received a copy of the GNU General Public License # 18 # along with this program. If not, see <http://www.gnu.org/licenses/>. # 19 # # 20 ############################################################################### 21 22 # Python module imports. 23 from os import sep 24 25 # relax module imports. 26 from data_store import Relax_data_store; ds = Relax_data_store() 27 import dep_check 28 from pipe_control import pipes 29 from status import Status; status = Status() 30 from test_suite.system_tests.base_classes import SystemTestCase 31 3234 """TestCase class for the functional tests of relax data pipes.""" 358837 """Skip some tests if scipy is not installed. 38 39 @keyword methodName: The name of the test. 40 @type methodName: str 41 """ 42 43 # Execute the base class method. 44 super(Pipes, self).__init__(methodName) 45 46 # Missing module. 47 if not dep_check.scipy_module and methodName in ['test_change_type']: 48 # Store in the status object. 49 status.skipped_tests.append([methodName, 'Scipy', self._skip_type])50 5153 """Test the pipe.change_type user function.""" 54 55 # Create the data pipe. 56 self.interpreter.pipe.create('test', 'frame order') 57 58 # Change the type. 59 self.interpreter.pipe.change_type('N-state') 60 61 # Check the type. 62 self.assertEqual(cdp.pipe_type, 'N-state')63 6466 """Test the pipe bundle concepts.""" 67 68 # Execute the script. 69 self.script_exec(status.install_path + sep+'test_suite'+sep+'system_tests'+sep+'scripts'+sep+'pipe_bundle.py') 70 71 # Checks. 72 self.assertEqual(pipes.cdp_name(), None) 73 self.assertEqual(pipes.has_bundle('test bundle 1'), True) 74 self.assertEqual(pipes.has_bundle('test bundle 2'), True) 75 self.assertEqual(pipes.has_bundle('test bundle 3'), False) 76 bundles = sorted(pipes.bundle_names()) 77 self.assertEqual(bundles, ['test bundle 1', 'test bundle 2']) 78 for pipe, name in pipes.pipe_loop(name=True): 79 self.assertTrue(name in ['test pipe 1', 'test pipe 2', 'test pipe 3', 'test pipe 4', 'test pipe 5', 'test pipe 6']) 80 self.assertTrue(pipes.get_bundle(name) in ['test bundle 1', 'test bundle 2'])81 8284 """Create a data pipe.""" 85 86 # Create the data pipe. 87 self.interpreter.pipe.create('test', 'mf')
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sat Jun 8 10:44:54 2024 | http://epydoc.sourceforge.net |