title: How can I time-profile unittests in Python?
body: <p>I have a test suite and code it is testing. If I put <code>from memory_profiler import profile</code> at the tops of the appropriate files, decorate the functions I want profiled with <code>@profile</code>, and run in the standard way with <code>python TestThing.py</code>, I get great line-by-line results.</p>
  
  <p>But line_profiler doesn't come in a package this way, and the only way I have been able to profile anything with it is with <code>kernprof -l -v thing.py</code>. If I use it on my unit tests, none of the tests are run (unsurprising, really), and no results are generated. How can I time-profile my tests and the code they use in a way analogous to memory_profiler? </p>