summaryrefslogtreecommitdiff
path: root/test/templates/test_manager_template.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/templates/test_manager_template.py')
-rw-r--r--test/templates/test_manager_template.py15
1 files changed, 4 insertions, 11 deletions
diff --git a/test/templates/test_manager_template.py b/test/templates/test_manager_template.py
index bdc7387..d650eb9 100644
--- a/test/templates/test_manager_template.py
+++ b/test/templates/test_manager_template.py
@@ -11,18 +11,14 @@ class ManagerEmailTemplateTest(unittest.TestCase):
result = self.template.build(
timesheets=[self.not_approved],
maconomyurl="http://localhost/")
- self.assertIn("Markus Krogh (MK)", result)
- self.assertIn("has not been approved", result)
- self.assertIn("has been submitted", result)
+ self.assertIn("[Not approved] Markus Krogh (MK)", result)
self.assertIn("href=\"http://localhost/\"", result)
def test_not_submitted(self):
result = self.template.build(
timesheets=[self.not_submitted],
maconomyurl="http://localhost/")
- self.assertIn("Markus Krogh (MKR)", result)
- self.assertIn("has not been approved", result)
- self.assertIn("has not been submitted", result)
+ self.assertIn("[Unsubmitted] Markus Krogh (MKR)", result)
self.assertIn("href=\"http://localhost/\"", result)
def test_multiple_timesheets(self):
@@ -30,10 +26,7 @@ class ManagerEmailTemplateTest(unittest.TestCase):
timesheets=[self.not_submitted, self.not_approved],
maconomyurl="http://localhost/")
- self.assertIn("Markus Krogh (MKR)", result)
- self.assertIn("Markus Krogh (MK)", result)
- self.assertIn("has not been approved", result)
- self.assertIn("has been submitted", result)
- self.assertIn("has not been submitted", result)
+ self.assertIn("[Unsubmitted] Markus Krogh (MKR)", result)
+ self.assertIn("[Not approved] Markus Krogh (MK)", result)
self.assertIn("href=\"http://localhost/\"", result)