title: teardown method in unittest python
body: <p>I am new to python. I read unittest docs. In the documentation about tearDown() method, I found following lines</p>
  
  <p><strong>"This is called even if the test method raised an exception, so the implementation in subclasses may need to be particularly careful about checking internal state."</strong></p>
  
  <p>What does this statement conveys ? Can you let me understand me with the help of some good example, where the internal statement can create havoc ?</p>
  
  <p>Thanks in advance.</p>
  
  <p><strong>EDIT :</strong></p>
  
  <p>I got some answers, but they are quite simple. I need some examples, where some state is involved, like tests involving database and so on.</p>