def teardown_test ( self , context ) : context . test . tearDownClass ( ) context . test . _post_teardown ( run = True ) del context . test
python unittest destroy object
Tears down the Django test
def teardown_test(self, context):
        """
        Tears down the Django test
        """
        context.test.tearDownClass()
        context.test._post_teardown(run=True)
        del context.test