blob: 60e923a56b491c12640557b5ee33fcb47d4db323 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
from maconomy import MissingEmailTemplate
import unittest
class MissingEmailTemplateTest(unittest.TestCase):
def setUp(self):
self.template = MissingEmailTemplate()
def test_substitution(self):
result = self.template.build(maconomyurl="http://localhost/", helpurl="http://example.com")
self.assertIn("href=\"http://localhost/\"", result)
self.assertIn("href=\"http://example.com\"", result)
|