<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>This is what I want:<br>
    </p>
    <p><br>
      class TestAclass():<br>
          # repeat following test 4 times<br>
          for i in range(1,4):<br>
              def test_1(self):<br>
                  pass<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 2016-10-18 10:19 AM, Tiago Ferraz
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAE5Zuu6RuUDu3VxaNqq3Tu5j7Po0B0N0n8ZnyigzdoBo9gSb5Q@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hypothesis does this. I think it is possible to
        create a decorator that could repeat the test method a defined
        number of times. But now, I am guessing this is not exactly what
        you are looking for. Could you share more details over your goal
        with this?
        <div><br>
        </div>
        <div>-T</div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Tue, Oct 18, 2016 at 4:16 PM, James
          <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:bjlockie@lockie.ca" target="_blank">bjlockie@lockie.ca</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
            <br>
            Is it possible to loop over a test case and do it multiple
            times?<br>
            <br>
            <br>
            ______________________________<wbr>_________________<br>
            testing-in-python mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:testing-in-python@lists.idyll.org"
              target="_blank">testing-in-python@lists.idyll.<wbr>org</a><br>
            <a moz-do-not-send="true"
              href="http://lists.idyll.org/listinfo/testing-in-python"
              rel="noreferrer" target="_blank">http://lists.idyll.org/listinf<wbr>o/testing-in-python</a><br>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>