def absolute_path(path):
 return os.path.abspath(os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', path))

def absolute_path ( path ) : return os . path . abspath ( os . path . join ( os . path . dirname ( os . path . realpath ( __file__ ) ) , '..' , path ) )
returns the absolute path for a path specified as relative to the tests/ directory .