summaryrefslogtreecommitdiff
path: root/test/templates/test_unsubmitted_email_template.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/templates/test_unsubmitted_email_template.py')
-rw-r--r--test/templates/test_unsubmitted_email_template.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/templates/test_unsubmitted_email_template.py b/test/templates/test_unsubmitted_email_template.py
new file mode 100644
index 0000000..ab13700
--- /dev/null
+++ b/test/templates/test_unsubmitted_email_template.py
@@ -0,0 +1,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)