@classmethod
    def _error_check_permissions(cls):
        # Error checking
        if not cls.permission_tests:
            # No tests, we'll just stop here - we don't want to fail
            return False

        if not isinstance(cls.permission_tests, dict):
            raise AssertionError('The `permission_tests` attribute must be a dict')

        if 'model' not in cls.permission_tests:
            raise AssertionError('You must specify a model to create an instance of')

        if cls.permission_tests not in 'endpoint':
            raise AssertionError('You must specify an endpoint')

        # Things look OK
        return True
dataset/ETHPy150Open stackdio/stackdio/stackdio/core/tests/utils.py/PermissionsMixin._error_check_permissions/swapped operands of `not in`