old_contents: import pytest
  from testing import run
  
  from functional.simple_test import pip_freeze
  
  def it_shows_help_for_prune():
      out, err = run('pip-faster', 'install', '--help')
      assert '''
    --no-clean                  Don't clean up build directories.
    --prune                     Uninstall any non-required packages.
    --no-prune                  Do not uninstall any non-required packages.
  
  Package Index Options:
  ''' in out
      assert err == ''
  
  
  @pytest.mark.usefixtures('pypi_server')
  def it_installs_stuff(tmpdir):
      venv = tmpdir.join('venv')
      run('virtualenv', str(venv))
  
      assert pip_freeze(str(venv)) == '''\
  '''
  
      pip = venv.join('bin/pip').strpath
      run(pip, 'install', 'pip-faster')
  
      assert [
          req.split('==')[0]
          for req in pip_freeze(str(venv)).split()
      ] == ['pip-faster', 'virtualenv', 'wheel']
  
      run(str(venv.join('bin/pip-faster')), 'install', 'pure_python_package')
  
      assert 'pure-python-package==0.1.0' in pip_freeze(str(venv)).split('\n')
  
new_contents: import pytest
  from testing import run
  
  from functional.simple_test import pip_freeze
  
  def it_shows_help_for_prune():
      out, err = run('pip-faster', 'install', '--help')
      assert '''
    --no-clean                  Don't clean up build directories.
    --prune                     Uninstall any non-required packages.
    --no-prune                  Do not uninstall any non-required packages.
  
  Package Index Options:
  ''' in out
      assert err == ''
  
  
  @pytest.mark.usefixtures('pypi_server')
  def it_installs_stuff(tmpdir):
      venv = tmpdir.join('venv')
      run('virtualenv', str(venv))
  
      assert pip_freeze(str(venv)) == '''\
  '''
  
      pip = venv.join('bin/pip').strpath
      run(pip, 'install', 'pip-faster')
  
      assert [
          req.split('==')[0]
          for req in pip_freeze(str(venv)).split()
      ] == ['pip-faster', 'virtualenv', 'wheel']
  
      run(str(venv.join('bin/pip-faster')), 'install', 'pure_python_package')
  
      assert 'pure-python-package==0.2.0' in pip_freeze(str(venv)).split('\n')
  
subject: Fix tests/functional/pip_faster.py