old_contents: from __future__ import absolute_import, division, print_function
  
  import subprocess
  import os
  
  def test_function():
      script = """
      #!/bin/bash
  
      shopt -s expand_aliases
      huckle pull https://hcli.io/hcli-webapp/cli/jsonf?command=jsonf
      . ~/.huckle/huckle_profile
      echo {"hello":"world"} | jsonf go
      """
  
      p1 = subprocess.Popen(['bash', '-c', script], stdin=subprocess.PIPE, stdout=subprocess.PIPE)
      out, err = p1.communicate()
      result = out.decode('utf-8')
  
      assert('{\n  "hello": "world"\n}' in result)
  
new_contents: from __future__ import absolute_import, division, print_function
  
  import subprocess
  import os
  
  def test_function():
      setup = """
      #!/bin/bash
  
      huckle pull https://hcli.io/hcli-webapp/cli/jsonf?command=jsonf
      echo '{"hello":"world"}' | jsonf go
      """
  
      p1 = subprocess.Popen(['bash', '-c', setup], stdin=subprocess.PIPE, stdout=subprocess.PIPE)
      out, err = p1.communicate()
  
      hello = """
      #!/bin/bash
  
      export PATH=$PATH:~/.huckle/bin
      echo '{"hello":"world"}' | jsonf go
      """
      
      p2 = subprocess.Popen(['bash', '-c', hello], stdin=subprocess.PIPE, stdout=subprocess.PIPE)
      out, err = p2.communicate()
      result = out.decode('utf-8')
  
      assert('{\n  "hello" : "world"\n}\n' in result)
  
subject: fix the test which contained a formatting mistake