

def test_freeze_basic(script):
    '\n    Some tests of freeze, first we have to install some stuff.  Note that\n    the test is a little crude at the end because Python 2.5+ adds egg\n    info to the standard library, so stuff like wsgiref will show up in\n    the freezing.  (Probably that should be accounted for in pip, but\n    currently it is not).\n\n    '
    script.scratch_path.join('initools-req.txt').write(textwrap.dedent('        simple==2.0\n        # and something else to test out:\n        simple2<=3.0\n        '))
    script.pip_install_local('-r', (result.scratch_path / 'initools-req.txt'))
    result = script.pip('freeze', expect_stderr=True)
    expected = textwrap.dedent('        ...simple==2.0\n        simple2==3.0...\n        <BLANKLINE>')
    _check_output(result.stdout, expected)

dataset/ETHPy150Open pypa/pip/tests/functional/test_freeze.py test_freeze_basic/VarMisuse@38/232 `script`->`result`