'make sure register user call invokes update_user'

@patch('email_marketing.signals.crum.get_current_request')
@patch('lms.djangoapps.email_marketing.tasks.update_user.delay')
def test_register_user(self, mock_update_user, mock_get_current_request):

    mock_get_current_request.return_value = self.request
    email_marketing_register_user(None, user=self.user, profile=self.profile)
    self.assertTrue(mock_update_user.called)
