'Assert that if two users change Email address simultaneously, no error is thrown'

@patch('student.views.render_to_string', Mock(side_effect=mock_render_to_string, autospec=True))
def test_duplicate_activation_key(self):

    user1_new_email = 'valid_user1_email@example.com'
    user2_new_email = 'valid_user2_email@example.com'
    user2 = UserFactory.create(email=self.new_email, password='test2')
    self.assertIsNone(self.do_email_change(self.user, user1_new_email))
    self.assertIsNone(self.do_email_change(user2, user2_new_email))
