What steps will reproduce the problem?
1. run the test: tests/handler_test.py
2. fails because month should be initialized to a string not an integer.
Please provide any additional information below.
The following fixes the problem:
--- a/tests/handler_test.py
+++ b/tests/handler_test.py
@@ -420,7 +420,7 @@
self.assertEqual(func('methods', _scheme='https', _full=False), 'https://localhost:80/methods')
self.assertEqual(func('methods', _scheme='https', _fragment='my-anchor'), 'https://localhost:80/methods#my-anchor')
- self.assertEqual(func('route-test', year='2010', month=0,
name='test'), '/2010/0/test')
+ self.assertEqual(func('route-test', year='2010', month='0',
name='test'), '/2010/0/test')
self.assertEqual(func('route-test', year='2010', month='07', name='test'), '/2010/07/test')
self.assertEqual(func('route-test', year='2010', month='07', name='test', foo='bar'), '/2010/07/test?foo=bar')
self.assertEqual(func('route-test', _fragment='my-anchor', year='2010', month='07', name='test', foo='bar'), '/2010/07/test?foo=bar#my-anchor')
Original issue reported on code.google.com by j...@metologica.com on 11 Jan 2012 at 3:14
Original issue reported on code.google.com by
j...@metologica.com
on 11 Jan 2012 at 3:14