def METHOD_NAME(self):
    eq = self.assertEqual
    s = Template('$who ate ${meal}')
    d = dict(who=('tim', 'fred'), meal=('ham', 'kung pao'))
    eq(s.substitute(d), "('tim', 'fred') ate ('ham', 'kung pao')")
    eq(s.safe_substitute(d), "('tim', 'fred') ate ('ham', 'kung pao')")