diff --git a/TWLight/users/tests.py b/TWLight/users/tests.py index a38e9c8c4c..92c48526cc 100644 --- a/TWLight/users/tests.py +++ b/TWLight/users/tests.py @@ -1433,6 +1433,7 @@ def test_block_hash_changed(self): self.assertEqual(new_editor.user.email, "porkchop@example.com") self.assertEqual(new_editor.wp_registered, datetime(2013, 2, 5).date()) self.assertTrue(check_password(blocked_dict, new_editor.wp_block_hash)) + self.assertEqual(len(mail.outbox), 1) # Add a new block from the user copied_merged_blocked_array = copy.copy(FAKE_MERGED_ACCOUNTS_BLOCKED) @@ -1458,7 +1459,7 @@ def test_block_hash_changed(self): self.assertTrue(check_password(new_blocked_dict, new_editor.wp_block_hash)) self.assertFalse(check_password(blocked_dict, new_editor.wp_block_hash)) - self.assertEqual(len(mail.outbox), 1) + self.assertEqual(len(mail.outbox), 2) class OAuthTestCase(TestCase):