I feel like I should know this, but I haven\'t been able to figure it out...
I want to get the name of a method--which happens to be an integration test--from inside
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.
extract_stack