parameters: (context, url)
return_statement: return '{}://{}{}'.format(scheme, resolve_hostname(context, fqdn), path)
docstring: return the url with a resolved hostname
      :type context: behave.runner.Context
      :type url: str
docstring_summary: return the url with a resolved hostname
      :type context: behave.runner.Context
      :type url: str
docstring_tokens: return the url with a resolved hostname : type context : behave . runner . Context : type url : str
function: def resolve_url(context, url):
      """
      return the url with a resolved hostname
      :type context: behave.runner.Context
      :type url: str
      """
      pseudo = re.match(r'(\S+)://([^/]+)(.*)', url)
      if not pseudo:
          return url
      scheme = pseudo.group(1)
      fqdn = pseudo.group(2)
      path = pseudo.group(3)
      return '{}://{}{}'.format(scheme, resolve_hostname(context, fqdn), path)
function_tokens: def resolve_url ( context , url ) : pseudo = re . match ( r'(\S+)://([^/]+)(.*)' , url ) if not pseudo : return url scheme = pseudo . group ( 1 ) fqdn = pseudo . group ( 2 ) path = pseudo . group ( 3 ) return '{}://{}{}' . format ( scheme , resolve_hostname ( context , fqdn ) , path )