def test_freeze_with_local_option(script):
 result = script.pip_install_local('initools==0.2')
 result = script.pip('freeze', expect_stderr=True)
 expected = textwrap.dedent('        INITools==0.2\n        wsgiref==...\n        <BLANKLINE>')
 result = script.pip('freeze', '--local', expect_stderr=True)
 expected = textwrap.dedent('        INITools==0.2\n        <BLANKLINE>')
 _check_output(result.stdout, expected)

def test_freeze_with_local_option ( script ) : result = script . pip_install_local ( 'initools==0.2' ) result = script . pip ( 'freeze' , expect_stderr = True ) expected = textwrap . dedent ( '        INITools==0.2\n        wsgiref==...\n        <BLANKLINE>' ) result = script . pip ( 'freeze' , '--local' , expect_stderr = True ) expected = textwrap . dedent ( '        INITools==0.2\n        <BLANKLINE>' ) _check_output ( result . stdout , expected )
test that wsgiref is reported normally .