title: re-import module-under-test to lose context
body: <p>Many Python modules preserve an internal state without defining classes, e.g. <code>logging</code> maintains several loggers accessible via <code>getLogger()</code>.</p>
  
  <p><strong>How do you test such a module?</strong><br> Using the standard <a href="http://docs.python.org/library/unittest.html" rel="noreferrer"><code>unittest</code></a> tools, I would like the various tests inside a <code>TestCase</code> class to re-import my module-under-test so that each time it loses its context. Can this be done?</p>