mailr3743 - /1.3/test_suite/unit_tests/_prompt/test_state.py


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

Header


Content

Posted by edward on November 21, 2007 - 00:49:
Author: bugman
Date: Wed Nov 21 00:11:15 2007
New Revision: 3743

URL: http://svn.gna.org/viewcvs/relax?rev=3743&view=rev
Log:
Shifted the prompt.state.State class instance into the unit test class 
namespace.


Modified:
    1.3/test_suite/unit_tests/_prompt/test_state.py

Modified: 1.3/test_suite/unit_tests/_prompt/test_state.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/test_suite/unit_tests/_prompt/test_state.py?rev=3743&r1=3742&r2=3743&view=diff
==============================================================================
--- 1.3/test_suite/unit_tests/_prompt/test_state.py (original)
+++ 1.3/test_suite/unit_tests/_prompt/test_state.py Wed Nov 21 00:11:15 2007
@@ -44,12 +44,12 @@
 relax.interpreter = Container()
 relax.interpreter.intro = True
 
-# Instantiate the user function class.
-state = State(relax)
-
  
 class Test_state(State_base_class, TestCase):
     """Unit tests for the functions of the 'prompt.state' module."""
+
+    # Instantiate the user function class.
+    state = State(relax)
 
 
     def test_load_argfail_file(self):
@@ -62,7 +62,7 @@
                 continue
 
             # The argument test.
-            self.assertRaises(RelaxStrError, state.load, file=data[1])
+            self.assertRaises(RelaxStrError, self.state.load, file=data[1])
 
 
     def test_load_argfail_dir(self):
@@ -75,7 +75,7 @@
                 continue
 
             # The argument test.
-            self.assertRaises(RelaxNoneStrError, state.load, file='a', 
dir=data[1])
+            self.assertRaises(RelaxNoneStrError, self.state.load, file='a', 
dir=data[1])
 
 
 




Related Messages


Powered by MHonArc, Updated Wed Nov 21 01:00:10 2007