comparison tests/test_wsgi.txt @ 65:83327bc715be

make the virtualenv convenience method return more stuff
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 01 Mar 2012 18:31:52 -0800
parents 26139fb1de98
children
comparison
equal deleted inserted replaced
64:bb8d993376aa 65:83327bc715be
67 >>> os.listdir(os.path.join(srcdir, 'helloworld')) 67 >>> os.listdir(os.path.join(srcdir, 'helloworld'))
68 ['__init__.py'] 68 ['__init__.py']
69 69
70 Install the package and inspect the installation:: 70 Install the package and inspect the installation::
71 71
72 >>> python = create_virtualenv(tmpdir) 72 >>> python = create_virtualenv(tmpdir).python
73 73
74 You should not be able to import ``helloworld`` yet:: 74 You should not be able to import ``helloworld`` yet::
75 75
76 >>> code = subprocess.call([python, '-c', 'import helloworld'], stdout=subprocess.PIPE, stderr=subprocess.PIPE) 76 >>> code = subprocess.call([python, '-c', 'import helloworld'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
77 >>> code 77 >>> code