(self)
| 265 | eq(s.substitute(dict(who='tim', what='ham')), 'tim likes $') |
| 266 | |
| 267 | def test_percents(self): |
| 268 | eq = self.assertEqual |
| 269 | s = Template('%(foo)s $foo ${foo}') |
| 270 | d = dict(foo='baz') |
| 271 | eq(s.substitute(d), '%(foo)s baz baz') |
| 272 | eq(s.safe_substitute(d), '%(foo)s baz baz') |
| 273 | |
| 274 | def test_stringification(self): |
| 275 | eq = self.assertEqual |
nothing calls this directly
no test coverage detected