def resolve_attrs(test_method):
 def _wrapper(self, *args):
  new_args = [getattr(self, arg) for arg in args]
  return test_method(self, *new_args)
 return _wrapper

def resolve_attrs ( test_method ) : def _wrapper ( self , * args ) : new_args = [ getattr ( self , arg ) for arg in args ] return test_method ( self , * new_args ) return _wrapper
helper function used with ddt .