<p>I feel like I should know this, but I haven't been able to figure it out...</p>

<p>I want to get the name of a method--which happens to be an integration test--from inside it so it can print out some diagnostic text.  I can, of course, just hard-code the method's name in the string, but I'd like to make the test a little more DRY if possible.</p>

I think the
```
traceback
```
module might have what you're looking for. In particular, the
```
extract_stack
```
function looks like it will do the job.