Author: bugman Date: Sun Nov 25 18:42:05 2007 New Revision: 3932 URL: http://svn.gna.org/viewcvs/relax?rev=3932&view=rev Log: Added a unit test for the generic_fns.pipes.current() function. Modified: 1.3/test_suite/unit_tests/_generic_fns/test_pipes.py Modified: 1.3/test_suite/unit_tests/_generic_fns/test_pipes.py URL: http://svn.gna.org/viewcvs/relax/1.3/test_suite/unit_tests/_generic_fns/test_pipes.py?rev=3932&r1=3931&r2=3932&view=diff ============================================================================== --- 1.3/test_suite/unit_tests/_generic_fns/test_pipes.py (original) +++ 1.3/test_suite/unit_tests/_generic_fns/test_pipes.py Sun Nov 25 18:42:05 2007 @@ -159,6 +159,16 @@ self.assertRaises(RelaxError, pipes.create, 'new', 'x') + def test_current(self): + """Get the current data pipe. + + The function used is generic_fns.pipes.current(). + """ + + # Test the current pipe. + self.assertEqual(pipes.current(), 'orig') + + def test_deletion(self): """Test the deletion of a data pipe.