title: How do I run multiple Python test cases in a loop?
body: <p>I am new to Python and trying to do something I do often in Ruby. Namely, iterating over a set of indices, using them as argument to function and comparing its results with an array of fixture outputs. </p>
  
  <p>So I wrote it up like I normally do in Ruby, but this resulted in just one test case. </p>
  
  <pre><code>  def test_output(self):
      for i in range(1,11):
        ....
        self.assertEqual(fn(i),output[i])
  </code></pre>
  
  <p>I'm trying to get the test for every item in the range. How can I do that?</p>