Mercurial > hg > simpypi
comparison tests/test_ttw.txt @ 61:53ec5144f84f
start serving PyPI
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Thu, 01 Mar 2012 15:59:18 -0800 |
parents | 46f5fd27ee54 |
children | 7c154953acc4 |
comparison
equal
deleted
inserted
replaced
60:46f5fd27ee54 | 61:53ec5144f84f |
---|---|
8 >>> from simpypi.factory import factory | 8 >>> from simpypi.factory import factory |
9 | 9 |
10 Create a WSGI app:: | 10 Create a WSGI app:: |
11 | 11 |
12 >>> app = factory(directory=directory) | 12 >>> app = factory(directory=directory) |
13 | |
14 Now wrap it in a server:: | |
15 | |
16 >>> server = testserver(app, 'localhost', 64321) | |
17 >>> server.start() | |
18 | |
19 Shut down the server:: | |
20 | |
21 >>> server.stop() |