From 8cae0a6749a315df64bd0fe89f6e47bb1024fb7f Mon Sep 17 00:00:00 2001 From: suecarmol Date: Thu, 20 Jan 2022 19:42:54 -0600 Subject: [PATCH] Add extra assertion --- TWLight/users/tests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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):