def test_freeze_basic(script):
 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', (script.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)

def test_freeze_basic ( script ) : 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' , ( script . 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 )
some tests of freeze .