Message101349
Ok, unfortunately this code won't work for certain tests. Take those:
self.assertEqual("My name is {0}".format('Fred'), "My name is Fred")
We pass only one argument, which is a dict and this won't satisfy such test. We need to think about a different way of passing those arguments there. We can do one of two thins:
* the last argument of args tuple would be an object that can be subscripted for format values
* keyword with above object
I believe the second version is more explicit and therefore better. |
|
Date |
User |
Action |
Args |
2010-03-19 22:33:15 | gruszczy | set | recipients:
+ gruszczy, rhettinger, eric.smith, ezio.melotti, r.david.murray, ebehar |
2010-03-19 22:33:15 | gruszczy | set | messageid: <1269037995.09.0.914469944818.issue6081@psf.upfronthosting.co.za> |
2010-03-19 22:33:13 | gruszczy | link | issue6081 messages |
2010-03-19 22:33:13 | gruszczy | create | |
|