Trees | Indices | Help |
|
---|
|
1 ############################################################################### 2 # # 3 # Copyright (C) 2012 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 # Module docstring. 23 """Unit test module for the prompt.uf_objects module.""" 24 25 # Python module imports. 26 from unittest import TestCase 27 28 # relax module imports. 29 from prompt.uf_objects import Class_container, Uf_object 30 from user_functions.data import Uf_info; uf_info = Uf_info() 31 3234 """Unit test case for the prompt.uf_objects module.""" 356437 """Test the _build_doc() method of all the prompt user function classes.""" 38 39 # Loop over the classes. 40 for name, data in uf_info.class_loop(): 41 # Print out. 42 print(name) 43 44 # Generate a new container. 45 obj = Class_container(name, data.title) 46 47 # Create the documentation and print it. 48 text = obj._build_doc()49 5052 """Test the _build_doc() method of all the prompt user function objects.""" 53 54 # Loop over the classes. 55 for name, data in uf_info.uf_loop(): 56 # Print out. 57 print(name) 58 59 # Generate a new container. 60 obj = Uf_object(name, title=data.title, kargs=data.kargs, backend=data.backend, desc=data.desc) 61 62 # Create the documentation and print it. 63 text = obj._build_doc()
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sat Jun 8 10:45:20 2024 | http://epydoc.sourceforge.net |