title: Python run unittests continuously or each test multiple times
body: <p>I have wrote unit test cases to test my application. and it is working as expected with out issues.</p>
  
  <p>below is some sample testcase</p>
  
  <pre><code>import os
  import unittest
  
  class CreateUser(unittest.TestCase):
      def setUp(self):
          pass
  
      def tearDown(self):
          pass
      def test_send_message(self):
          #my script goes here
          print "success"
  if __name__ == '__main__':
      unittest.main()
  </code></pre>
  
  <p>If i run this test it executing as expected but <strong>I want to run this test case 'N' no of times</strong>, </p>
  
  <p>for that i added for loop in main function, also its running only one time, code i used as below</p>
  
  <pre><code> if __name__ == '__main__':
      for i in range(1, 5):
           unittest.main()  
  </code></pre>
  
  <p>I also used <a href="https://pypi.python.org/pypi/schedule" rel="nofollow">schedule</a> lib to run test every 10 mins but no luck </p>
  
  <p><strong>Is there any way to run this test case multiple times</strong> or any other work around that i am missing or any other continuous build tool to achive this? </p>
  
  <p>Thanks in advance</p>