diff options
author | Mike Burrows <mjb@asplake.co.uk> | 2009-12-26 16:37:29 +0000 |
---|---|---|
committer | Mike Burrows <mjb@asplake.co.uk> | 2009-12-26 16:37:29 +0000 |
commit | 881f074d878e318a992ff4e68d947a226f1c9408 (patch) | |
tree | fb508a2026050d9eb6a5ffd78762288a3214dca7 /routes | |
parent | 516a748603ae6c95139040fed43f3db4cad3b499 (diff) | |
download | routes-881f074d878e318a992ff4e68d947a226f1c9408.tar.gz |
docstring and unit test for Mapper.__str__()
--HG--
branch : trunk
Diffstat (limited to 'routes')
-rw-r--r-- | routes/mapper.py | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/routes/mapper.py b/routes/mapper.py index e0a9556..db61e35 100644 --- a/routes/mapper.py +++ b/routes/mapper.py @@ -376,19 +376,7 @@ class Mapper(SubMapperParent): config.mapper = self def __str__(self): - """Pretty string representation. For example, in the paster shell: - >>> print mapper - - Route name Methods Path - POST /entries - entries GET /entries - new_entry GET /entries/new - PUT /entries/{id} - DELETE /entries/{id} - edit_entry GET /entries/{id}/edit - entry GET /entries/{id} - - """ + """Generates a tabular string representation.""" def format_methods(r): if r.conditions: method = r.conditions.get('method', '') |