mercredi 25 février 2015

Why is tearDown for in testing?

I understand that setUp is necessary because you may have to initialize some variables before running the test (please correct me if I'm wrong) but what is the tearDown for? Is it to delete all the variables created on the setUp? If so, when closing the cmd woundn't it already clear up the data? This is confusing for me.


I'm in particular using NoseTests with Python 2.7


Aucun commentaire:

Enregistrer un commentaire