(self)
| 281 | eq(s.substitute(d), 'tim has eaten 7 bags of ham today') |
| 282 | |
| 283 | def test_tupleargs(self): |
| 284 | eq = self.assertEqual |
| 285 | s = Template('$who ate ${meal}') |
| 286 | d = dict(who=('tim', 'fred'), meal=('ham', 'kung pao')) |
| 287 | eq(s.substitute(d), "('tim', 'fred') ate ('ham', 'kung pao')") |
| 288 | eq(s.safe_substitute(d), "('tim', 'fred') ate ('ham', 'kung pao')") |
| 289 | |
| 290 | def test_SafeTemplate(self): |
| 291 | eq = self.assertEqual |
nothing calls this directly
no test coverage detected