def _get_xunit_func(obj, name):
 meth = getattr(obj, name, None)
 if (fixtures.getfixturemarker(meth) is None):
  return meth

def _get_xunit_func ( obj , name ) : meth = getattr ( obj , name , None ) if ( fixtures . getfixturemarker ( meth ) is None ) : return meth
return the attribute from the given object to be used as a setup/teardown xunit-style function .