summaryrefslogtreecommitdiff
path: root/tests/test_canary.py
diff options
context:
space:
mode:
authorJesse Morgan <jesse@jesterpm.net>2015-11-24 11:12:49 -0800
committerJesse Morgan <jesse@jesterpm.net>2015-11-24 11:12:49 -0800
commit6259efbc44be3e21e42b29246941cd300e79200f (patch)
tree67532f37aeadc45e959fffd1d05ab45ecd72e114 /tests/test_canary.py
parent51129fda2179286143921db55a69b3f4dba03c0e (diff)
Adding emailcanary script
Adding the main launch script. Adding the listAddress to the pings table. Fixing the Makefile
Diffstat (limited to 'tests/test_canary.py')
-rw-r--r--tests/test_canary.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_canary.py b/tests/test_canary.py
index ff104f6..d23f3fe 100644
--- a/tests/test_canary.py
+++ b/tests/test_canary.py
@@ -40,10 +40,10 @@ class TestCanary(unittest.TestCase):
# Assert DB updated
self.db.get_recipients_for_list.assert_called_with(LIST_ADDRESS)
self.db.ping.assert_has_calls( \
- [mock.call(USER_ADDRESS1, mock.ANY, mock.ANY), \
- mock.call(USER_ADDRESS2, mock.ANY, mock.ANY)])
+ [mock.call(LIST_ADDRESS, USER_ADDRESS1, mock.ANY, mock.ANY), \
+ mock.call(LIST_ADDRESS, USER_ADDRESS2, mock.ANY, mock.ANY)])
args = self.db.ping.call_args
- expectedSubject = "Canary Email " + args[0][2]
+ expectedSubject = "Canary Email " + args[0][3]
# Assert emails were sent
self.assertEqual(1, self.smtp.sendmail.call_count)