Getting pytest name and parameters from context during runtime
<p>As I know there is a way to get running test's name and parameters during runtime using PyTest with fixture 'request':</p>

<pre><code>def test_example(request):
   print 'name: %s' % request.node.name
   print 'params: %s' % request.node.funcargs
</code></pre>

<p>Is there a way to get the same information from static context?
I'm trying to write a static method that will be able to return the same info:</p>

<pre><code>def static_method():
   if not RandomPytestClass.context:
      return None
   return RandomPytestClass.context.running_test_name, RandomPytestClass.context.running_test_params
</code></pre>