Put to sleep inside the tearDown method of your TestCase
class ExampleTestCase(unittest.TestCase): def setUp(self): pass def tearDown(self): time.sleep(1)
This will be done after each test inside TestCase
EDIT : added setUp because the documentation may indicate that you cannot have tearDown without one, but this is not clear
Daniel DiPaolo
source share