Author: bugman Date: Sat Jun 28 17:57:37 2008 New Revision: 6514 URL: http://svn.gna.org/viewcvs/relax?rev=6514&view=rev Log: Started to check the contents of the model-free results file from results.write(). Modified: 1.3/test_suite/system_tests/model_free.py Modified: 1.3/test_suite/system_tests/model_free.py URL: http://svn.gna.org/viewcvs/relax/1.3/test_suite/system_tests/model_free.py?rev=6514&r1=6513&r2=6514&view=diff ============================================================================== --- 1.3/test_suite/system_tests/model_free.py (original) +++ 1.3/test_suite/system_tests/model_free.py Sat Jun 28 17:57:37 2008 @@ -856,6 +856,13 @@ # Write the results file into a dummy file. self.relax.interpreter._Results.write(file=file, dir=path) + # Now, get the contents of that file, and then 'close' that file. + lines = file.readlines() + file.close() + + # Test the first line. + self.assertEqual(lines[0] == '<?xml version="1.0" ?>\n') + def value_test(self, spin, select, s2, te, rex, chi2, iter, f_count, g_count, h_count, warning): """Method for testing the optimisation values.