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

        result = notifications._validate_subs(exemplar)

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

        result = notifications._validate_subs(exemplar)

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

        result = notifications._validate_subs(exemplar)

        self.assertEqual(exemplar, result)