mailr3574 - /1.3/test_suite/unit_tests/prompt/test_spin.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on November 18, 2007 - 21:37:
Author: bugman
Date: Sun Nov 18 21:37:52 2007
New Revision: 3574

URL: http://svn.gna.org/viewcvs/relax?rev=3574&view=rev
Log:
The spin user function unit tests now test these functions rather than those 
of generic_fns.spin.


Modified:
    1.3/test_suite/unit_tests/prompt/test_spin.py

Modified: 1.3/test_suite/unit_tests/prompt/test_spin.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/test_suite/unit_tests/prompt/test_spin.py?rev=3574&r1=3573&r2=3574&view=diff
==============================================================================
--- 1.3/test_suite/unit_tests/prompt/test_spin.py (original)
+++ 1.3/test_suite/unit_tests/prompt/test_spin.py Sun Nov 18 21:37:52 2007
@@ -25,9 +25,21 @@
 
 # relax module imports.
 from data import Data as relax_data_store
-from generic_fns import spin
+from prompt.spin import Spin
 from relax_errors import RelaxError, RelaxNoPipeError
 
+
+# A class to act as a container.
+class Container:
+    pass
+
+# Fake normal relax usage of the user function class.
+relax = Container()
+relax.interpreter = Container()
+relax.interpreter.intro = True
+
+# Instantiate the user function class.
+spin = Spin(relax)
 
 
 class Test_spin(TestCase):




Related Messages


Powered by MHonArc, Updated Sun Nov 18 22:00:13 2007