mailr25213 - /trunk/test_suite/system_tests/structure.py


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

Header


Content

Posted by edward on August 22, 2014 - 14:09:
Author: bugman
Date: Fri Aug 22 14:09:14 2014
New Revision: 25213

URL: http://svn.gna.org/viewcvs/relax?rev=25213&view=rev
Log:
Improved data checking for all of the Structure system tests.

Before looping over the structural data, the number of lines in the real file 
and the newly
generated file are compared.  This avoids the situation whereby an empty file 
is produced,
accidentally allowing the test to pass.


Modified:
    trunk/test_suite/system_tests/structure.py

Modified: trunk/test_suite/system_tests/structure.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/test_suite/system_tests/structure.py?rev=25213&r1=25212&r2=25213&view=diff
==============================================================================
--- trunk/test_suite/system_tests/structure.py  (original)
+++ trunk/test_suite/system_tests/structure.py  Fri Aug 22 14:09:14 2014
@@ -143,6 +143,7 @@
         # Check the created PDB file.
         lines = file.readlines()
         self.strip_remarks(lines)
+        self.assertEqual(len(contents), len(lines))
         for i in range(len(lines)):
             self.assertEqual(contents[i], lines[i])
 
@@ -204,6 +205,7 @@
         # Check the created PDB file.
         lines = file.readlines()
         self.strip_remarks(lines)
+        self.assertEqual(len(contents), len(lines))
         for i in range(len(lines)):
             self.assertEqual(contents[i], lines[i])
 
@@ -3359,6 +3361,7 @@
 
         # Check the data.
         self.strip_remarks(lines)
+        self.assertEqual(len(real_data), len(lines))
         for i in range(len(real_data)):
             self.assertEqual(real_data[i], lines[i])
 
@@ -3637,6 +3640,7 @@
         # Check the created PDB file.
         lines = file.readlines()
         self.strip_remarks(lines)
+        self.assertEqual(len(result), len(lines))
         for i in range(len(lines)):
             self.assertEqual(result[i]+'\n', lines[i])
 
@@ -3694,6 +3698,7 @@
         # Check the created PDB file.
         lines = file.readlines()
         self.strip_remarks(lines)
+        self.assertEqual(len(result), len(lines))
         for i in range(len(lines)):
             self.assertEqual(result[i]+'\n', lines[i])
 
@@ -3767,5 +3772,6 @@
         # Check the created PDB file.
         lines = file.readlines()
         self.strip_remarks(lines)
+        self.assertEqual(len(result), len(lines))
         for i in range(len(lines)):
             self.assertEqual(result[i]+'\n', lines[i])




Related Messages


Powered by MHonArc, Updated Fri Aug 22 15:00:02 2014