Example #1
0
    def test_known_substitutions(self):
        exemplar = '{id} {application} {summary} {body} {category} {urgency}'

        result = notifier._validate_subs(exemplar)

        self.assertEqual(exemplar, result)
Example #2
0
    def test_substitutions_passthrough(self):
        exemplar = '{id} {id!r} {id: ^23s}'

        result = notifier._validate_subs(exemplar)

        self.assertEqual(exemplar, result)
Example #3
0
    def test_no_substitutions(self):
        exemplar = 'this is a test'

        result = notifier._validate_subs(exemplar)

        self.assertEqual(exemplar, result)