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