summaryrefslogtreecommitdiff
path: root/test/ext/declarative/test_basic.py
diff options
context:
space:
mode:
authorFrazer McLean <frazer@frazermclean.co.uk>2016-07-26 00:02:03 +0200
committerFrazer McLean <frazer@frazermclean.co.uk>2016-08-06 02:25:27 +0100
commit87d5982e582f2439e6d6fad8b38d9f2122811f1c (patch)
tree5142c6617431ee1af688cb3cdae83f0c2f4cbdb4 /test/ext/declarative/test_basic.py
parentf2fa9d000b44a54b0fd3ae6114eb5d53ef20c3b8 (diff)
downloadsqlalchemy-87d5982e582f2439e6d6fad8b38d9f2122811f1c.tar.gz
Add docstring to declarative_base
Change-Id: I5ad44362515908592f1e8b1e6254a5270d43234a Pull-request: https://github.com/zzzeek/sqlalchemy/pull/295
Diffstat (limited to 'test/ext/declarative/test_basic.py')
-rw-r--r--test/ext/declarative/test_basic.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/ext/declarative/test_basic.py b/test/ext/declarative/test_basic.py
index ae1a85f8b..67018d737 100644
--- a/test/ext/declarative/test_basic.py
+++ b/test/ext/declarative/test_basic.py
@@ -1722,6 +1722,15 @@ class DeclarativeTest(DeclarativeTestBase):
]
)
+ def test_cls_docstring(self):
+
+ class MyBase(object):
+ """MyBase Docstring"""
+
+ Base = decl.declarative_base(cls=MyBase)
+
+ eq_(Base.__doc__, MyBase.__doc__)
+
def _produce_test(inline, stringbased):