rubenbarroso/tabloid — Issue #15: Extract code to check test scenarios
Author: rubenbarroso
Created: 2011-10-09 17:10:02+00:00
State: open

In every test method, we have the following:

for input, output in self.cases:
result = renderer.render(input)
self.assertEqual(output, result)

Maybe create a test base class that contains this method, or decorate the test methods or ... whatever it takes to not have this code duplicated everywhere.