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