Enhance test framework to handle testing multiple outputs from tools.

This commit is contained in:
Greg Von Kuster
2010-01-11 16:35:16 -05:00
parent 98f8c9df29
commit 093a9700ed
+3 -3
View File
@@ -60,9 +60,9 @@ class ToolTestCase( TwillTestCase ):
page_inputs = self.__expand_grouping(testdef.tool.inputs_by_page[i], all_inputs)
self.submit_form( **page_inputs )
print "page_inputs (%i)" % i, page_inputs
# Check the result
assert len( testdef.outputs ) == 1, "ToolTestCase does not deal with multiple outputs properly yet."
for name, file, sort in testdef.outputs:
# Check the results ( handles single or multiple tool outputs )
for output_tuple in testdef.outputs:
name, file, sort = output_tuple
self.verify_dataset_correctness( file, maxseconds=testdef.maxseconds, sort=sort )
self.delete_history( id=self.security.encode_id( latest_history.id ) )