'Test that correct fields call update_user'

@patch('email_marketing.signals.crum.get_current_request')
@patch('lms.djangoapps.email_marketing.tasks.update_user.delay')
@ddt.data(('auth_userprofile', 'gender', 'f', True), ('auth_user', 'is_active', 1, True), ('auth_userprofile', 'shoe_size', 1, False), ('user_api_userpreference', 'pref-lang', 'en', True))
@ddt.unpack
def test_modify_field(self, table, setting, value, result, mock_update_user, mock_get_current_request):

    mock_get_current_request.return_value = self.request
    email_marketing_user_field_changed(None, self.user, table=table, setting=setting, new_value=value)
    self.assertEqual(mock_update_user.called, result)
