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