def _setQuotaDefault(self, model, value, testVal='__NOCHECK__',
                         error=None):
        """
        Set the default quota for a particular model.

        :param model: either 'user' or 'collection'.
        :param value: the value to set.  Either None or a positive integer.
        :param testVal: if not __NOCHECK__, test the current value to see if it
                        matches this.
        :param error: if set, this is a substring expected in an error message.
        """
        from girder.plugins.user_quota import constants

        if model == 'user':
            key = constants.PluginSettings.QUOTA_DEFAULT_USER_QUOTA
        elif model == 'collection':
            key = constants.PluginSettings.QUOTA_DEFAULT_COLLECTION_QUOTA
        try:
            self.model('setting').set(key, value)
        except ValidationException as err:
            if not error:
                raise
            if err.args[0] not in error:
                raise
            return
        if testVal is not '__NOCHECK__':
            newVal = self.model('setting').get(key)
            self.assertEqual(newVal, testVal)
dataset/ETHPy150Open girder/girder/plugins/user_quota/plugin_tests/user_quota_test.py/QuotaTestCase._setQuotaDefault/swapped operands of `not in`