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

        result = notifications._validate_subs(exemplar)

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

        result = notifications._validate_subs(exemplar)

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

        result = notifications._validate_subs(exemplar)

        self.assertEqual(exemplar, result)