Skip to content

Commit

Permalink
Add extra assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
suecarmol committed Jan 21, 2022
1 parent 8ec32d0 commit 8cae0a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion TWLight/users/tests.py
Expand Up @@ -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)
Expand All @@ -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):
Expand Down

0 comments on commit 8cae0a6

Please sign in to comment.