File: //proc/3/task/3/cwd/usr/lib/python2.4/distutils/tests/test_install_scripts.pyc
mň
=5Dc @ s d Z d k Z d k Z d k l Z d k l Z d k l Z d e i e i
e i f d YZ d Z
e d j o e i d d
n d S( s, Tests for distutils.command.install_scripts.N( s install_scripts( s Distribution( s supportt InstallScriptsTestCasec B s t Z d Z d Z RS( Nc C ső t } t i d d | i d <t i d d d d d d | i d <t | } | i | i | i | i
| i | i d j | i | i
d j | i | i | i | i | i
| i | i d | i | i
d d S(
Nt
build_scriptss /foo/bart buildt install_scriptss /splat/funkt forcei t
skip_buildt install( t Distributiont distt supportt DummyCommandt command_objR t cmdt selft assert_R R t build_dirt Nonet install_dirt finalize_optionst assertEqual( R
R R ( ( t: /usr/lib/python2.4/distutils/tests/test_install_scripts.pyt test_default_settings s
c sň | i g d } | d d | d d | d d | i } t } t i d | i
d <t i d
| d d d
d | i
d <t | } | i
| i t i | } x! D] } | i | | j qŃ Wd S( Nc sF i | t t i i | d } | i | | i d S( Nt w( t expectedt appendt namet opent ost patht joint sourcet ft writet textt close( R R! R ( R R ( R t write_script* s
s
script1.pys@ #! /usr/bin/env python2.3
# bogus script w/ Python sh-bang
pass
s
script2.pys8 #!/usr/bin/python
# bogus script w/ Python sh-bang
pass
s shell.shs1 #!/bin/sh
# bogus shell script w/ sh-bang
exit 0
R R R R i R R ( R
t mkdtempR R R# t targetR R R R
R R R R t runR t listdirt installedR R ( R
R R% R R# R( R R R ( ( R R R t test_installation&