shazaman23 / webapp-improved

Automatically exported from code.google.com/p/webapp-improved
Other
0 stars 0 forks source link

tests/handler_test.py fails #43

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
This issue was closed by revision 98025103c562.

Original comment by rodrigo.moraes on 31 Jan 2012 at 4:10