summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/testing/entities.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqlalchemy/testing/entities.py')
-rw-r--r--lib/sqlalchemy/testing/entities.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/sqlalchemy/testing/entities.py b/lib/sqlalchemy/testing/entities.py
index 1b24e73b7..5c5e69154 100644
--- a/lib/sqlalchemy/testing/entities.py
+++ b/lib/sqlalchemy/testing/entities.py
@@ -2,7 +2,10 @@ import sqlalchemy as sa
from sqlalchemy import exc as sa_exc
_repr_stack = set()
+
+
class BasicEntity(object):
+
def __init__(self, **kw):
for key, value in kw.iteritems():
setattr(self, key, value)
@@ -21,7 +24,10 @@ class BasicEntity(object):
_repr_stack.remove(id(self))
_recursion_stack = set()
+
+
class ComparableEntity(BasicEntity):
+
def __hash__(self):
return hash(self.__class__)