import unittest, time
from sql import Mysql


class test_db(unittest.TestCase):

    def testRowCount(self):
        mql = Mysql()
        mql.populate()
        count = 0
        while True:
            count += 1
            self.failIf(mql.rowcount() != 5)
            res = mql.call_test_proc()
            self.failIf(res[0][0] != 'test proc')
            print "Executed test {0} times".format(count)
            time.sleep(5)


def main():
    unittest.main()

if __name__ == '__main__':
    main()

@@ -169,20 +169,17 @@
 = 0%0A    
-    
+#
 while Tr
@@ -186,28 +186,24 @@
 ue:%0A        
-   
- 
 count += 1%0A 
@@ -201,20 +201,16 @@
 nt += 1%0A
-    
         
@@ -250,20 +250,16 @@
         
-  
-  
 res = mq
@@ -277,20 +277,16 @@
 _proc()%0A
-    
         
@@ -331,20 +331,16 @@
         
- 
-   
 print %22E
@@ -377,20 +377,16 @@
 (count)%0A
-    
         

Remove loop