def test_known_substitutions(self): exemplar = '{id} {application} {summary} {body} {category} {urgency}' result = notifications._validate_subs(exemplar) self.assertEqual(exemplar, result)
def test_substitutions_passthrough(self): exemplar = '{id} {id!r} {id: ^23s}' result = notifications._validate_subs(exemplar) self.assertEqual(exemplar, result)
def test_no_substitutions(self): exemplar = 'this is a test' result = notifications._validate_subs(exemplar) self.assertEqual(exemplar, result)