summaryrefslogtreecommitdiff
path: root/test/templates/test_unsubmitted_email_template.py
diff options
context:
space:
mode:
authorMarkus Krogh <markus@nordu.net>2016-03-10 11:53:42 +0000
committerMarkus Krogh <markus@nordu.net>2016-03-10 11:53:42 +0000
commit4575c7ea47680e7f589477c917a73353d6faef73 (patch)
tree5f1fb1d8d120b8d609b2018a5eb8e8ad30183952 /test/templates/test_unsubmitted_email_template.py
parent67abade3147d6d706c18beaac219d549fb71c35e (diff)
Manager mail + ceo mail
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)