Mercurial > hg > simpypi
comparison tests/doctest.txt @ 33:058182b7b309
note test-requires.txt in the readme
| author | Jeff Hammel <jhammel@mozilla.com> |
|---|---|
| date | Wed, 29 Feb 2012 20:32:26 -0800 |
| parents | 15c7171941ea |
| children | a02d08627d9c |
comparison
equal
deleted
inserted
replaced
| 32:486a4640fc31 | 33:058182b7b309 |
|---|---|
| 1 Test simpypi | 1 Test simpypi |
| 2 ============ | 2 ============ |
| 3 | 3 |
| 4 The obligatory imports:: | 4 The obligatory imports:: |
| 5 | 5 |
| 6 >>> import os | |
| 6 >>> import simpypi | 7 >>> import simpypi |
| 8 >>> from paste.fixture import TestApp | |
| 7 | 9 |
| 10 The directory is initially empty:: | |
| 11 | |
| 12 >>> os.listdir(directory) | |
| 13 [] | |
| 14 | |
| 15 Make a test application:: | |
| 16 | |
| 17 >>> app = simpypi.SimPyPI(directory) | |
| 18 >>> testapp = TestApp(app) |
